This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: -ffunction-sections -fdata-sections vs. string-inst


Loren James Rittle wrote:
> I believe this is exposing a bug in ld on my platform since if I
> remove -Wl,--gc-sections from mkcheck, all those tests run fine again.
> 
> My opinion only, but I don't think this should stop your patch going
> in since I have looked at the build logs closely and think it is doing
> the right thing.  The test should continue to include
> -Wl,--gc-sections in order to continue to flag the problem, but users
> that have a buggy ld (if my supposition is correct) can just avoid
> including that flag when they link.

Could we add an autoconf test to see if ld accepts --gc-secions at all?
I'm trying to get the library working on HP-UX 10.20, where GNU ld isn't
supported (but the native linker supposedly can take advantage of
-ffuncion_sections).

    Brane

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70

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