the testcase for previous --emit-relocs issue was written & tested for bare-metal, while for linux target, the start address will include "SIZEOF_HEADERS" . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS; should specify -T relocs.ld in the testcase to be consistent will all other emit-relocs* testcases ok for trunk? thanks ld/testsuite/ * ld-aarch64/emit-relocs-local-addend.d: Use target linker script.