arm: Remove unnecessary volatile qualifier
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 20 Oct 2017 16:44:18 +0000 (17:44 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 3 Nov 2017 14:48:35 +0000 (14:48 +0000)
There is no reason to treat tlsdesc entries as volatile objects.

* sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.

ChangeLog
sysdeps/arm/dl-machine.h

index e1dc25c..9598180 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
+       * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
+
+2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
        [BZ #18572]
        * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
        non-lazily for R_ARM_TLS_DESC.
index c59386f..ec3a027 100644 (file)
@@ -464,8 +464,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
          }
        case R_ARM_TLS_DESC:
          {
-           struct tlsdesc volatile *td =
-             (struct tlsdesc volatile *)reloc_addr;
+           struct tlsdesc *td = (struct tlsdesc *)reloc_addr;
 
 # ifndef RTLD_BOOTSTRAP
            if (! sym)