[patch] DWARF-5: testcase [Re: [PATCH 1/6] DWARF attrs: add delimiter]

Nick Clifton nickc@redhat.com
Tue Feb 21 09:44:00 GMT 2017


Hi Jan,

> In the end it was not so much work but this is what I meant by that "a lot of
> hand coding". :-)

:-)

When in doubt - do the right thing.

> Feel free to throw the results at me.  I have already tested non-x86 big-endian.

Attached is a revised test.

This version allows for:

  * Assembling on the ARM which uses the @ character as a line-comment character.
  * Assembling on targets which do not support CFi directives.
  * Assembling on the SH which does not support unaligned .long directives.
  * Assembling on various targets which do not support relocations for .quad values.
  * Testing on targets which generate extra text in the readelf output - because readelf does not support the relocations used (yet)

The patch also skips the test for RISCV targets as they currently do not support
non-constant LEB128 expressions.

The only targets which still fail this test are HPPA and HPPA64, which I believe
is due to a real bug somewhere in their backend code.  I have not tracked down the
actual bug yet, but I felt that it was better to leave the test as failing (rather
than xfailing it) as a reminder that it needs to be investigated.

Cheers
  Nick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf5.test.patch
Type: text/x-patch
Size: 39002 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20170221/9a87b2c8/attachment.bin>


More information about the Binutils mailing list