public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28153] [test] gmon/tst-gmon-gprof* may have a f3 line when built with ld.lld
Date: Fri, 30 Jul 2021 22:48:20 +0000	[thread overview]
Message-ID: <bug-28153-131-ewMnDd3B8S@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28153-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28153

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
ld.bfd generates:

0000000000401000 T _init
0000000000401090 T main
00000000004010b0 T _start
00000000004010e0 T __gmon_start__
0000000000401130 t deregister_tm_clones
0000000000401160 t register_tm_clones
00000000004011a0 t __do_global_dtors_aux
00000000004011d0 t frame_dummy
0000000000401250 T atexit
0000000000401264 T _fini
0000000000401271 T etext

ld.lld generates:

0000000000201ba0 T _start
0000000000201bd0 T __gmon_start__
0000000000201c20 t deregister_tm_clones
0000000000201c50 t register_tm_clones
0000000000201c90 t __do_global_dtors_aux
0000000000201cc0 t frame_dummy
0000000000201d40 T main
0000000000201d60 t atexit
0000000000201d74 t _init
0000000000201d90 t _fini
0000000000201e10 T etext

glibc assumes that _start is the lowest address for which we need o keep
profiling records.  The newer GCC places main in .text.startup section.
Since _start is in .text section, ld.bfd places main below _start.   Put
_start in .text.startup section makes f3 to show up with ld.bfd.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-07-30 22:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 21:10 [Bug libc/28153] New: " i at maskray dot me
2021-07-29 16:50 ` [Bug libc/28153] " hjl.tools at gmail dot com
2021-07-30  4:35 ` i at maskray dot me
2021-07-30 22:48 ` hjl.tools at gmail dot com [this message]
2021-07-31  4:23 ` hjl.tools at gmail dot com
2021-08-24 14:18 ` hjl.tools at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28153-131-ewMnDd3B8S@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).