mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-05 12:53:16 +08:00
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.
11 lines
212 B
ArmAsm
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
|