From 8bd621d8835d2e6a99bd50ae8d18328ab06951ba Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 3 Oct 2001 15:11:48 +0000 Subject: Add support for -z nocopyreloc. --- bfd/elf32-i386.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bfd/elf32-i386.c') 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) { -- cgit v1.1