diff options
author | Alan Modra <amodra@gmail.com> | 2001-10-03 15:11:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-10-03 15:11:48 +0000 |
commit | 8bd621d8835d2e6a99bd50ae8d18328ab06951ba (patch) | |
tree | a0054f75aa1f3e7c025bba18a46dc592f6129521 /bfd/elf32-i386.c | |
parent | 181ddcac374ea90e61502925bbea23934eaa3275 (diff) | |
download | gdb-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.c | 7 |
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) { |