
Most tests are ported from AArch64. The relr-addend test is added to make sure the addend (link-time address) is correctly written into the relocated section. Doing so is not strictly needed for RELA, but strictly needed for RELR). Signed-off-by: Xi Ruoyao <xry111@xry111.site>
24 lines
285 B
Text
24 lines
285 B
Text
/* Script for DT_RELR tests */
|
|
OUTPUT_ARCH(loongarch64)
|
|
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
PROVIDE (__executable_start = 0x8000); . = 0x10000;
|
|
.text :
|
|
{
|
|
*(.before)
|
|
*(.text)
|
|
*(.after)
|
|
} =0
|
|
. = 0x20000;
|
|
.got :
|
|
{
|
|
*(.got)
|
|
*(.got.plt)
|
|
}
|
|
. = 0x12340000;
|
|
.data :
|
|
{
|
|
*(.data)
|
|
}
|
|
}
|