This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][gold] Fix pr18327


On 27 April 2015 at 13:07, Cary Coutant <ccoutant@gmail.com> wrote:
>> 2015-04-27  Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com>
>>
>> PR gold/18327
>> * output.cc (Output_section::is_input_address_mapped): Assume a missing
>> entry is mapped.
>> * testsuite/Makefile.am: Add the eh_test test.
>> * testsuite/Makefile.in: Regenerate.
>> * testsuite/eh_test_a.cc: New test.
>> * testsuite/eh_test_b.cc: New test.
>
> +eh_test: eh_test_a.o eh_test_b.o  gcctestdir/ld
> +        $(CXXLINK_S) -Bgcctestdir/ eh_test_a.o eh_test_b.o
>
> I don't think you need to statically link in the runtime libraries.
> $(CXXLINK) should be fine here.

It is the other way, I need libstdc++ to be shared for the test to
fail on master, and:

# Strip out -static-libgcc and -static-libstdc++ options, for tests
# that must have these libraries linked dynamically.  The -shared-libgcc
# option does not work correctly, and there is no -shared-libstdc++ option.
# (See GCC PR 55781 and PR 55782.)
CXXLINK_S = `echo $(CXXLINK1) | sed -e 's/-static-lib\\(gcc\\|stdc++\\)//g'`


OK?

Cheers,
Rafael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]