This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add the "ld -r" test for ELF visibility.
On Wed, Oct 31, 2001 at 02:12:10PM -0500, Hans-Peter Nilsson wrote:
> On Wed, 31 Oct 2001, H . J . Lu wrote:
> > Here is the new test.
> >
> > * ld-elfvsb/elfvsb.exp: Add the "ld -r" test.
> >
> > * ld-elfvsb/visibility.s: New.
>
> This looks like it could use the run_dump_test framework. See
> ld-linkonce for an example (change "objdump" to "readelf", and
> weed out everything but the HIDDEN and PROTECTED lines with #...
> and #pass). Much less footwork per test.
>
I am not sure if it will work too well in this case. The problem is I don't
care the exact output. I only look for
7: 00000000 0 NOTYPE GLOBAL HIDDEN UND hidden
8: 00000000 0 NOTYPE GLOBAL INTERNAL UND internal
9: 00000000 0 NOTYPE GLOBAL PROTECTED UND protected
Different targets may have different indexes and additional informations.
How do I filter them out?
H.J.