
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>
13 lines
220 B
Text
13 lines
220 B
Text
OUTPUT_ARCH(loongarch64)
|
|
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
/DISCARD/ : { *(.discard.*) }
|
|
|
|
. = 0x10000;
|
|
.text : { *(.text) }
|
|
. = 0x20000;
|
|
.got : { *(.got) *(.got.plt)}
|
|
. = 0x30000;
|
|
.data : { *(.data) *(.data.*) }
|
|
}
|