diff options
author | Nick Clifton <nickc@redhat.com> | 2023-11-06 13:59:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-11-06 13:59:53 +0000 |
commit | f1837d9c3f2dc2a5c232f4eae4c4bd5a7f77baf8 (patch) | |
tree | 1a402e2068d9a1c0946aaf1e65a2b9729c66f582 /ld/testsuite/ld-scripts/fill2.d | |
parent | f005d229412772e89f8deabc493cee6256ea6559 (diff) | |
download | binutils-f1837d9c3f2dc2a5c232f4eae4c4bd5a7f77baf8.zip binutils-f1837d9c3f2dc2a5c232f4eae4c4bd5a7f77baf8.tar.gz binutils-f1837d9c3f2dc2a5c232f4eae4c4bd5a7f77baf8.tar.bz2 |
ld: =fillexp different behaviors for hexidecimal literal
PR 30865
* ld.texi: Update description of the FILL command.
* testsuite/ld-scripts/fill2.d: New test.
* testsuite/ld-scripts/fill2.t: New test source.
* testsuite/ld-scripts/data.exp: Run the new test.
Diffstat (limited to 'ld/testsuite/ld-scripts/fill2.d')
-rw-r--r-- | ld/testsuite/ld-scripts/fill2.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/fill2.d b/ld/testsuite/ld-scripts/fill2.d new file mode 100644 index 0000000..f913a82 --- /dev/null +++ b/ld/testsuite/ld-scripts/fill2.d @@ -0,0 +1,12 @@ +#source: fill_0.s +#ld: -T fill2.t +#readelf: -x.foo +#notarget: ![is_elf_format] +# See PR 30865 - a fill value expressed as a simple hexadecimal +# number behaves differently from other fill values. + +Hex dump of section '.foo': + 0x00000000 00000000 00000090 91919191 00000092 ................ + 0x00000010 00000093 00025000 00969500 00000097 ................ + 0x00000020 00010203 04050607 04050607 04050607 ................ + 0x00000030 08090a0b ffffffff .* |