This website requires JavaScript.
Explore
Help
Sign In
mirror
/
binutils-gdb
Watch
2
Star
0
Fork
0
You've already forked binutils-gdb
mirror of
https://sourceware.org/git/binutils-gdb.git
synced
2025-02-23 13:21:43 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
00ef37e860
binutils-gdb
/
ld
/
testsuite
/
ld-scripts
/
pr22267.t
5 lines
29 B
Perl
Raw
Normal View
History
Unescape
Escape
ld: Don't allow '~' as the first char in symbol name Don't allow '~' as the first character in symbol name in linker script. PR ld/22267 * ldlex.l (SYMBOLNAMECHAR1) New. (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1. (EXPRESSION): Likewise. * testsuite/ld-scripts/expr.exp: Run pr22267. * testsuite/ld-scripts/pr22267.d: New file. * testsuite/ld-scripts/pr22267.s: Likewise. * testsuite/ld-scripts/pr22267.t: Likewise.
2017-10-09 19:17:10 +08:00
SECTIONS
{
bfd: strip symbols not representable in COFF/PE symbol table The offset-within-section field in the symbol table entry is only 32 bits wide, so rather than emitting bogus entries omit them, and issue a diagnostic identifying the issue. This requires adjusting the PR/22267 test to no longer produce symbols with out of range values on 64-bit BFD. This also depends on adjustments to testsuite/ld-scripts/map-address.* made by an earlier patch. The purpose of the test can very well be achieved nevertheless.
2021-03-10 15:12:37 +08:00
foo
=
~
~
0xFF
;
ld: Don't allow '~' as the first char in symbol name Don't allow '~' as the first character in symbol name in linker script. PR ld/22267 * ldlex.l (SYMBOLNAMECHAR1) New. (DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1. (EXPRESSION): Likewise. * testsuite/ld-scripts/expr.exp: Run pr22267. * testsuite/ld-scripts/pr22267.d: New file. * testsuite/ld-scripts/pr22267.s: Likewise. * testsuite/ld-scripts/pr22267.t: Likewise.
2017-10-09 19:17:10 +08:00
}
Reference in New Issue
Copy Permalink