diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-06-15 18:25:20 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-06-15 18:25:20 +0000 |
commit | 188dbb07f1cfd26aef9c470a430e3b26f5be829a (patch) | |
tree | 60f1c93326fd9f89e65c890e8657f84916f4584e /bfd/elf32-i386.c | |
parent | 048cbda4419086de3a9dac2c18e2ec50fc655451 (diff) | |
download | gdb-188dbb07f1cfd26aef9c470a430e3b26f5be829a.zip gdb-188dbb07f1cfd26aef9c470a430e3b26f5be829a.tar.gz gdb-188dbb07f1cfd26aef9c470a430e3b26f5be829a.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 6cbf428..c9e2c1d 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -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) |