diff options
author | Maciej W. Rozycki <macro@mips.com> | 2018-02-12 16:04:05 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-02-12 16:04:05 +0000 |
commit | 12a43565addfdf720b3ba8cc45eab6daf66f85dd (patch) | |
tree | a4ab5c8b35ed19ce9835114007f2b7d2c77a5ff8 /gdb/dwarf2read.c | |
parent | d2159fdc0f0ac1d0aaafab725b930e78a8793494 (diff) | |
download | gdb-12a43565addfdf720b3ba8cc45eab6daf66f85dd.zip gdb-12a43565addfdf720b3ba8cc45eab6daf66f85dd.tar.gz gdb-12a43565addfdf720b3ba8cc45eab6daf66f85dd.tar.bz2 |
MIPS/GAS/test: Fix an n32 `.reginfo' size test failure
Correct a commit 2d6dda71611b ("MIPS/BFD: Correctly report unsupported
`.reginfo' section size") issue and avoid a GAS test failure:
regexp_diff match failure
regexp "^.*: Incorrect `\.reginfo' section size; expected 24, got 28$"
line "../as-new: dump.o: Incorrect `.reginfo' section size; expected 24, got 32"
FAIL: MIPS assembled .reginfo section size (n32)
on MIPS targets other than bare-metal ones. The reason for this failure
is section padding to alignment, done in `size_seg'. For n32 `.reginfo'
the section alignment is set to 3, and therefore the section is padded
to a multiple of 8, except for bare-metal targets, for which padding is
unconditionally disabled in `md_section_align'.
Use `--no-pad-sections' then to disable padding for all targets, so that
the size of `.reginfo' is always the same, matching the message pattern.
gas/
* testsuite/gas/mips/reginfo-2-n32.d: Add `--no-pad-sections' to
`as' flags.
Diffstat (limited to 'gdb/dwarf2read.c')
0 files changed, 0 insertions, 0 deletions