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: ppc64 __attribute__((visibility ("hidden"))) and multiple TOCs


Jakub Jelinek wrote:

> For replacability the current definition is just fine.  Weak functions
> must be assumed to be always replaceable and non-weak functions which are
> known to bind within the same executable resp. shared library are not
> replaceable - linker will issue error if two non-weak symbols with the
> same name are linked into the same executable resp. shared library and
> when linking a non-weak symbol and weak symbol the non-weak one will
> win.

Good point -- if there's no definition in the current translation unit,
then I guess we aren't going to make any bad assumptions about the
contents of the function.  So, I guess that just means that the Power
back end needs to check for !DECL_EXTERNAL in addition to binds_local_p?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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