aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-09-23 11:40:06 +0000
committerAlan Modra <amodra@gmail.com>2010-09-23 11:40:06 +0000
commit0814be7d69f8c15cdb3f9c441f0367b52fb1320e (patch)
tree7958c2bc31e3c375bd3daa29f71686dd82402580 /ld
parentb7cf0db702d127af30530aa751f8ccb09d1954d8 (diff)
downloadgdb-0814be7d69f8c15cdb3f9c441f0367b52fb1320e.zip
gdb-0814be7d69f8c15cdb3f9c441f0367b52fb1320e.tar.gz
gdb-0814be7d69f8c15cdb3f9c441f0367b52fb1320e.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0f4fa43..e7c8e77 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-23 Alan Modra <amodra@gmail.com>
+
+ * ldlang.c (lang_add_section): Don't copy SEC_RELOC from input
+ to output section on a final link.
+
2010-09-22 Kai Tietz <kai.tietz@onevision.com>
* ldlang.c (lang_add_section): Allow for debugging
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)
{