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: Tue, 24 Aug 2021 14:18:26 +0000 [thread overview] Message-ID: <bug-28153-131-3mYdnYm2E0@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 ---------------------------------------------------------------------------- Target Milestone|--- |2.35 Resolution|--- |FIXED Status|NEW |RESOLVED Version|unspecified |2.34 --- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- Fixed for glibc 2.35 by commit 84a7eb1f87c1d01b58ad887a0ab5d87abbc1c772 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Jul 30 19:07:30 2021 -0700 Use __executable_start as the lowest address for profiling [BZ #28153] Glibc assumes that ENTRY_POINT is the lowest address for which we need to keep profiling records and BFD linker uses a linker script to place the input sections. Starting from GCC 4.6, the main function is placed in .text.startup section and starting from binutils 2.22, BFD linker with commit add44f8d5c5c05e08b11e033127a744d61c26aee Author: Alan Modra <amodra@gmail.com> Date: Thu Nov 25 03:03:02 2010 +0000 * scripttempl/elf.sc: Group .text.exit, text.startup and .text.hot sections. places .text.startup section before .text section, which leave the main function out of profiling records. Starting from binutils 2.15, linker provides __executable_start to mark the lowest address of the executable. Use __executable_start as the lowest address to keep the main function in profiling records. This fixes [BZ #28153]. Tested on Linux/x86-64, Linux/x32 and Linux/i686 as well as with build-many-glibcs.py. -- You are receiving this mail because: You are on the CC list for the bug.
prev parent reply other threads:[~2021-08-24 14:18 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 2021-07-31 4:23 ` hjl.tools at gmail dot com 2021-08-24 14:18 ` hjl.tools at gmail dot com [this message]
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-3mYdnYm2E0@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: linkBe 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).