From 0814be7d69f8c15cdb3f9c441f0367b52fb1320e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 23 Sep 2010 11:40:06 +0000 Subject: ld/ * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input to output section on a final link. bfd/ * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC difference between input and output section. --- ld/ldlang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/ldlang.c') diff --git a/ld/ldlang.c b/ld/ldlang.c index 1c38618..36750ed 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2232,7 +2232,7 @@ lang_add_section (lang_statement_list_type *ptr, to see .text with SEC_LINK_ONCE set. */ if (!link_info.relocatable) - flags &= ~ (SEC_LINK_ONCE | SEC_LINK_DUPLICATES); + flags &= ~(SEC_LINK_ONCE | SEC_LINK_DUPLICATES | SEC_RELOC); switch (output->sectype) { -- cgit v1.1