mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
Stop the GOLD linker from complaining about relocations from .gnu.build.attributes sections to discarded code sections.
* target-reloc.h (Default_comdat_behaviour:get): Ignore discarded relocs that refer to the .gnu.build.attributes section.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-07-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
|
||||||
|
relocs that refer to the .gnu.build.attributes section.
|
||||||
|
|
||||||
2020-07-06 Nick Clifton <nickc@redhat.com>
|
2020-07-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/fr.po: Updated French translation.
|
* po/fr.po: Updated French translation.
|
||||||
|
@ -136,6 +136,7 @@ class Default_comdat_behavior
|
|||||||
if (Layout::is_debug_info_section(name))
|
if (Layout::is_debug_info_section(name))
|
||||||
return CB_PRETEND;
|
return CB_PRETEND;
|
||||||
if (strcmp(name, ".eh_frame") == 0
|
if (strcmp(name, ".eh_frame") == 0
|
||||||
|
|| is_prefix_of (".gnu.build.attributes", name)
|
||||||
|| strcmp(name, ".gcc_except_table") == 0)
|
|| strcmp(name, ".gcc_except_table") == 0)
|
||||||
return CB_IGNORE;
|
return CB_IGNORE;
|
||||||
return CB_ERROR;
|
return CB_ERROR;
|
||||||
|
Reference in New Issue
Block a user