From: Alex Coplan Date: Tue, 13 Jul 2021 16:20:22 +0000 (+0100) Subject: gas: Fix uninitialized c64 member of aarch64_fix struct X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a282ed903fcce7e98d09af474eca5e2b7c209f4;p=thirdparty%2Fbinutils-gdb.git gas: Fix uninitialized c64 member of aarch64_fix struct The c64 flag in the aarch64_fix struct was missing an initialization. This was causing Morello relocations to be spuriously inserted, even when not targeting C64. This patch fixes the issue by initializing the flag to false. gas/ChangeLog: 2021-07-13 Alex Coplan * config/tc-aarch64.h (TC_INIT_FIX_DATA): Initialize c64 member. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 7f41ff756b6..7a09f844952 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2021-07-13 Alex Coplan + + * config/tc-aarch64.h (TC_INIT_FIX_DATA): Initialize c64 + member. + 2020-10-20 Siddhesh Poyarekar * config/tc-aarch64.c (s_tlsdesccall): Emit Morello diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h index cd9740c7e90..88f5a4fe16a 100644 --- a/gas/config/tc-aarch64.h +++ b/gas/config/tc-aarch64.h @@ -133,8 +133,11 @@ struct eh_entry_extras while (0); #define TC_FIX_TYPE struct aarch64_fix -#define TC_INIT_FIX_DATA(FIX) { (FIX)->tc_fix_data.inst = NULL; \ - (FIX)->tc_fix_data.opnd = AARCH64_OPND_NIL; } +#define TC_INIT_FIX_DATA(FIX) { \ + (FIX)->tc_fix_data.inst = NULL; \ + (FIX)->tc_fix_data.opnd = AARCH64_OPND_NIL; \ + (FIX)->tc_fix_data.c64 = FALSE; \ +} #define TC_SYMFIELD_TYPE unsigned int #define AARCH64_GET_FLAG(s) (*symbol_get_tc (s))