2009-06-15 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Jun 2009 18:25:20 +0000 (18:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Jun 2009 18:25:20 +0000 (18:25 +0000)
* elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.

bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c

index e89dc008d877431c49e4f02dddd97e11e86c3435..4d4469b46c99aad45adeee6c5cb4787661a4a928 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
+       * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
 2009-06-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf32-i386.c (elf_i386_check_relocs): Reformat.
index 6cbf428e01b39703b1d2258d32551d2dba431280..c9e2c1d191568b7b514a5546c371b6c60d475cff 100644 (file)
@@ -2141,11 +2141,11 @@ elf_i386_allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
       asection *plt, *gotplt, *relplt;
 
       /* When a shared library references a STT_GNU_IFUNC symbol
-        defined in executable. the .got.plt slot in the shared library
-        will contain address of the .plt slot in the binary and only
-        its .got.plt will contain the resolved function that should be
-        called.  Pointer equality won't work correctly.  PIE should
-        be used if pointer equality is required here.  */
+        defined in executable, the address of the resolved function
+        may be used.  But in non-shared executable, the address of
+        its .plt slot may be used.  Pointer equality may not work
+        correctly.  PIE should be used if pointer equality is
+        required here.  */
       if (!info->shared
          && (h->dynindx != -1
              || info->export_dynamic)
index f7a48e93f4909f364138a5c4b6a098d4d10bc1b0..02e820149d2f3a10747ed678f63d308e25426d76 100644 (file)
@@ -1983,11 +1983,11 @@ elf64_x86_64_allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
       asection *plt, *gotplt, *relplt;
 
       /* When a shared library references a STT_GNU_IFUNC symbol
-        defined in executable. the .got.plt slot in the shared library
-        will contain address of the .plt slot in the binary and only
-        its .got.plt will contain the resolved function that should be
-        called.  Pointer equality won't work correctly.  PIE should
-        be used if pointer equality is required here.  */
+        defined in executable, the address of the resolved function
+        may be used.  But in non-shared executable, the address of
+        its .plt slot may be used.  Pointer equality may not work
+        correctly.  PIE should be used if pointer equality is
+        required here.  */
       if (!info->shared
          && (h->dynindx != -1
              || info->export_dynamic)
This page took 0.032436 seconds and 4 git commands to generate.