From 4ac3fa49965e32610c7c625b9bdc530fcceb14ea Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 7 Jul 2020 09:54:09 +0100 Subject: 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. --- gold/target-reloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gold/target-reloc.h') diff --git a/gold/target-reloc.h b/gold/target-reloc.h index e9e3e5b..748886e 100644 --- a/gold/target-reloc.h +++ b/gold/target-reloc.h @@ -136,6 +136,7 @@ class Default_comdat_behavior if (Layout::is_debug_info_section(name)) return CB_PRETEND; if (strcmp(name, ".eh_frame") == 0 + || is_prefix_of (".gnu.build.attributes", name) || strcmp(name, ".gcc_except_table") == 0) return CB_IGNORE; return CB_ERROR; -- cgit v1.1