X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gold%2Ftarget-reloc.h;h=0eeb7a38d8ef52d2722068a1ed31a4f3a20a86c2;hb=a2c5833233df078288c791c348a265c96c6182da;hp=6bde51dc31519ff842eb17464138c0c538494e43;hpb=43193fe9fc39138c912095ba6f21c4302abafe5e;p=thirdparty%2Fbinutils-gdb.git diff --git a/gold/target-reloc.h b/gold/target-reloc.h index 6bde51dc315..0eeb7a38d8e 100644 --- a/gold/target-reloc.h +++ b/gold/target-reloc.h @@ -1,6 +1,6 @@ // target-reloc.h -- target specific relocation support -*- C++ -*- -// Copyright (C) 2006-2018 Free Software Foundation, Inc. +// Copyright (C) 2006-2022 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -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; @@ -258,7 +259,7 @@ issue_discarded_error( &is_ordinary); if (orig_shndx != elfcpp::SHN_UNDEF) { - unsigned int key_symndx; + unsigned int key_symndx = 0; Relobj* kept_obj = object->find_kept_section_object(orig_shndx, &key_symndx); if (key_symndx != 0)