aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-03 15:11:48 +0000
committerAlan Modra <amodra@gmail.com>2001-10-03 15:11:48 +0000
commit8bd621d8835d2e6a99bd50ae8d18328ab06951ba (patch)
treea0054f75aa1f3e7c025bba18a46dc592f6129521 /bfd/elf32-i386.c
parent181ddcac374ea90e61502925bbea23934eaa3275 (diff)
downloadgdb-8bd621d8835d2e6a99bd50ae8d18328ab06951ba.zip
gdb-8bd621d8835d2e6a99bd50ae8d18328ab06951ba.tar.gz
gdb-8bd621d8835d2e6a99bd50ae8d18328ab06951ba.tar.bz2
Add support for -z nocopyreloc.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 719a209..e249304 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1127,6 +1127,13 @@ elf_i386_adjust_dynamic_symbol (info, h)
if ((h->elf_link_hash_flags & ELF_LINK_NON_GOT_REF) == 0)
return true;
+ /* If -z nocopyreloc was given, we won't generate them either. */
+ if (info->nocopyreloc)
+ {
+ h->elf_link_hash_flags &= ~ELF_LINK_NON_GOT_REF;
+ return true;
+ }
+
eh = (struct elf_i386_link_hash_entry *) h;
for (p = eh->dyn_relocs; p != NULL; p = p->next)
{