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: Does the LD --wrap feature work for library internal references?


On 10/01/2019 20:04, Joel Sherrill wrote:


On Thu, Jan 10, 2019, 8:05 AM Alan Modra <amodra@gmail.com <mailto:amodra@gmail.com> wrote:

    On Thu, Jan 10, 2019 at 02:48:16PM +0100, Sebastian Huber wrote:
    > So this wrapping works only across object files and not
    > for references inside an object file.

    Yes.  If a reference is to a function defined in the same file you
    don't have an undefined symbol for the given function in that file.


And per function section compilation and linking have no impact on that? Shouldn't there be more reference tracking with that enabled?

Sebastian.. I thought we used per function compilation everywhere. Even in the network stack.

Yes, I used -ffunction-sections.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


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