From: H.J. Lu Date: Mon, 15 Jun 2009 18:25:20 +0000 (+0000) Subject: 2009-06-15 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=188dbb07f1cfd26aef9c470a430e3b26f5be829a;p=binutils-gdb.git 2009-06-15 H.J. Lu * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e89dc008d87..4d4469b46c9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-06-15 H.J. Lu + + * 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 * elf32-i386.c (elf_i386_check_relocs): Reformat. diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 6cbf428e01b..c9e2c1d1915 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) diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index f7a48e93f49..02e820149d2 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -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)