This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] i386: Replace internal_function attribute for __mcount_internal


On 08/15/2017 02:22 PM, Andreas Schwab wrote:
> On Aug 15 2017, Florian Weimer <fweimer@redhat.com> wrote:
> 
>> On 08/15/2017 01:55 PM, Andreas Schwab wrote:
>>> On Aug 15 2017, Florian Weimer <fweimer@redhat.com> wrote:
>>>
>>>> See --enable-profile.  -pg should pick up the profiling libc on systems
>>>> where it is installed.
>>>
>>> -pg doesn't do that, -profile does.
>>
>> All the better.  But I don't have to link with -pg after all, at least
>> not on the targets I tested.
> 
> You need -pg for the startup file.

-pg will use the system startup file, so we can't use that.  We need to
link against our own startup file, just like we do for non-profiled
programs.

Thanks,
Florian


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