mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
b751e639fc
Folding a constant expression early can lead to loss of tokens, eg. ABSOLUTE, that are significant in ld's horrible context sensitive expression evaluation. Also, MAXPAGESIZE and other "constants" may not have taken values specified on the command line, leading to the wrong value being cached. * ldexp.c (exp_unop, exp_binop, exp_trinop, exp_nameop): Don't fold expression. * testsuite/ld-elf/maxpage3b.d: Expect correct maxpagesize.
12 lines
244 B
Makefile
12 lines
244 B
Makefile
#source: maxpage1.s
|
|
#ld: -T maxpage3.t -z max-page-size=0x10000000
|
|
#readelf: -lS --wide
|
|
#target: x86_64-*-linux*
|
|
|
|
#...
|
|
\[[ 0-9]+\] \.data[ \t]+PROGBITS[ \t]+0*10000000[ \t]+[ \t0-9a-f]+WA?.*
|
|
#...
|
|
LOAD+.*0x10000000
|
|
LOAD+.*0x10000000
|
|
#pass
|