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] PR ld/18720: Properly merge non-default versioned symbol


>> To me, if you're going to allow the two names to be the same, it
>> should define only one symbol. That would allow a library developer to
>> maintain multiple versions of a function in separate source files,
>> like this:
>
> The current gas/linker provide flexibility to support both ways.

No, it doesn't. If you try to link foo-orig.o, foo-ver1.o, and
foo-ver2.o, you'll get multiply-defined symbol errors for "foo".

-cary


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