diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2003-10-11 09:18:58 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2003-10-11 09:18:58 +0000 |
commit | 8e91916467a8bd0bd9f7a470f081f2a9b9fb2cbf (patch) | |
tree | f8c82247f3091963aa8f71016841a6326ea2f898 /ld/testsuite/ld-scripts/defined3.d | |
parent | 420e579cc4f1252a4e915ad866b49f76bda0c1cd (diff) | |
download | gdb-8e91916467a8bd0bd9f7a470f081f2a9b9fb2cbf.zip gdb-8e91916467a8bd0bd9f7a470f081f2a9b9fb2cbf.tar.gz gdb-8e91916467a8bd0bd9f7a470f081f2a9b9fb2cbf.tar.bz2 |
* ld-scripts/defined3.d, ld-scripts/defined3.t: New test.
* ld-scripts/defined.exp: Run defined3.
Diffstat (limited to 'ld/testsuite/ld-scripts/defined3.d')
-rw-r--r-- | ld/testsuite/ld-scripts/defined3.d | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/defined3.d b/ld/testsuite/ld-scripts/defined3.d new file mode 100644 index 0000000..1a7946d --- /dev/null +++ b/ld/testsuite/ld-scripts/defined3.d @@ -0,0 +1,25 @@ +#ld: -Tdefined3.t +#nm: -B +#source: phdrs.s +#source: defined.s + +# Check that DEFINED matches only symbols defined before its location. +# The ellipsis account for target-specific symbols. Matching both A and T +# accounts for formats that can't tell a .text symbol from an absolute +# symbol (mmo), but matches whatever section that contains an address +# matching the value. + +#... +0+1 [AT] defined +0+200 A defined1 +0+201 A defined2 +0+100 A defined3 +0+ [AT] defined4 +0+2a A defined5 +0+ [AT] defined6 +0+1 [AT] defined7 +0+1 [AT] defined8 +#... +0+2a A sym1 +[0-9a-f]+ T sym2 +#pass |