This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22284] -pg -pie doesn't work
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 12 Oct 2017 22:58:58 +0000
- Subject: [Bug libc/22284] -pg -pie doesn't work
- Auto-submitted: auto-generated
- References: <bug-22284-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22284
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr22284/2.26 has been created
at 5a951cc33ccec638bcd2a2ed44db34f2610dacd3 (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5a951cc33ccec638bcd2a2ed44db34f2610dacd3
commit 5a951cc33ccec638bcd2a2ed44db34f2610dacd3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Oct 12 03:45:55 2017 -0700
Support profiling PIE [BZ #22284]
Since PIE can be loaded at any address, we need to subtract load address
from PCs.
[BZ #22284]
* gmon/gmon.c [PIC]: Include <link.h>.
[PIC] (callback): New function.
(write_hist): Add an argument for load address. Subtract load
address from PCs.
(write_call_graph): Likewise.
(write_gmon): Call __dl_iterate_phdr to get load address, pass
it to write_hist and write_call_graph.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit d165ca64980f90ccace088670652cc203d1b5411)
-----------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.