binutils-gdb/binutils/testsuite/binutils-all/pr25662.ld
Jozef Lawrynowicz 1fafefd594 Add testcase for PR 25662 invalid sh_offset for section
binutils/ChangeLog:

2020-03-27  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	PR binutils/25662
	* testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
	specify whether an object file or executable should be built and tested.
	Change test names to report whether an object file or executable is
	being tested.
	* testsuite/binutils-all/pr25662.ld: New test.
	* testsuite/binutils-all/pr25662.s: New test.
2020-03-27 10:54:26 +00:00

16 lines
215 B
Plaintext

ENTRY(_start)
MEMORY
{
RAM : ORIGIN = 0x0000, LENGTH = 0x0FFF
ROM : ORIGIN = 0x1000, LENGTH = 0x0FFF
}
SECTIONS
{
.data : { *(.data) } > RAM AT>ROM
.text : { *(.text) } > ROM
.bss : { *(.bss) } > RAM
}