mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
LoongArch: Add DT_RELR support
The logic is same as a71d876801 ("aarch64: Add DT_RELR support").
As LoongArch does not have -z dynamic-undefined-weak, we don't need to
consider UNDEFWEAK_NO_DYNAMIC_RELOC.
The linker relaxation adds another layer of complexity. When we delete
bytes in a section during relaxation, we need to fix up the offset in
the to-be-packed relative relocations against this section.
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
This commit is contained in:
@@ -474,6 +474,7 @@ proc supports_dt_relr {} {
|
||||
|| [istarget i?86-*-*]
|
||||
|| [istarget powerpc64*-*-*]
|
||||
|| [istarget aarch64*-*-*])
|
||||
|| [istarget loongarch64*-*-*]
|
||||
&& ([istarget *-*-linux*]
|
||||
|| [istarget *-*-gnu*]) } {
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user