binutils-gdb/ld/testsuite/ld-elf/overlay.s
Alan Modra 553dd76c7e Re: ld script expression parsing
Commit 40726f16a8 broke references to sections within ADDR(), and
overlays with weird section names.

	* ldgram.y (paren_script_name): New rule.
	(exp): Use it for ALIGNOF, SIZEOF, ADDR, and LOADADDR.  Similarly
	ensure script mode parsing for section name in SEGMENT_START.
	(overlay_section): Delete unnecessary ldlex_script call.  Backup
	on a lookahead NAME parsed in expression mode.
	* testsuite/ld-elf/overlay.s: Add more sections.
	* testsuite/ld-elf/overlay.t: Test '-' in section names.
2021-07-24 17:35:59 +09:30

11 lines
212 B
ArmAsm

.section .text1,"ax",%progbits
.space 0x10
.section .text2,"ax",%progbits
.space 0x20
.section .silly-name1,"ax",%progbits
.space 0x10
.section .silly-name2,"ax",%progbits
.space 0x20
.text
.space 0x30