mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user