mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
8be965c5f0
Find the ld-script/provide-*.d tests using a wildcard, then run them in a loop. This will make it easier to add more tests in the future. Some associated clean up is required. ld/ChangeLog: * testsuite/ld-scripts/provide-3.d: Add xfail directive. * testsuite/ld-scripts/provide-4.d: Use new map file name. * testsuite/ld-scripts/provide-5.d: Use new map file name. * testsuite/ld-scripts/provide-4-map.d: Renamed to... * testsuite/ld-scripts/provide-4.map: ...this. * testsuite/ld-scripts/provide-5-map.d: Renamed to... * testsuite/ld-scripts/provide-5.map: ...this. * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d file, and run tests in a loop.
14 lines
476 B
Plaintext
14 lines
476 B
Plaintext
#...
|
|
Linker script and memory map
|
|
#...
|
|
\[!provide\] +PROVIDE \(foo = 0x1\)
|
|
\[!provide\] +PROVIDE \(bar = 0x2\)
|
|
0x0+3 +PROVIDE \(baz = 0x3\)
|
|
#...
|
|
0x0+2000 +foo
|
|
\[!provide\] +PROVIDE \(loc1 = ALIGN \(\., 0x10\)\)
|
|
0x0+2010 +PROVIDE \(loc2 = ALIGN \(\., 0x10\)\)
|
|
\[!provide\] +PROVIDE \(loc3 = \(loc1 \+ 0x20\)\)
|
|
0x0+2030 +loc4 = \(loc2 \+ 0x20\)
|
|
#...
|