* [PATCH] Arm64: force emission of ILP32-dependent relocs
@ 2022-05-19 10:41 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-05-19 10:41 UTC (permalink / raw)
To: Binutils; +Cc: Nick Clifton, richard.earnshaw, Marcus Shawcroft
Arm64: force emission of ILP32-dependent relocs
Like the placeholder types added in 04dfe7aa5217 ("Arm64: follow-on to
PR gas/27217 fix"), these are also placeholders which are subsequently
resolved (albeit later, hence this being a separate issue). As for the
resolved types 1 is returned, these pseudo-relocs should also have 1
returned to force retaining of the [eventual] relocations. This is also
spelled out individually for each of them in md_apply_fix().
---
NOTE: pre-approved by Nick
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -3080,7 +3080,7 @@ aarch64_force_reloc (unsigned int type)
case BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_LO12_NC:
/* Pseudo relocs that need to be fixed up according to
ilp32_p. */
- return 0;
+ return 1;
case BFD_RELOC_AARCH64_ADD_LO12:
case BFD_RELOC_AARCH64_ADR_GOT_PAGE:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-19 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 10:41 [PATCH] Arm64: force emission of ILP32-dependent relocs Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).