From: Simon Marchi <simon.marchi@polymtl.ca>
To: rodney.m.bates@acm.org, gdb@sourceware.org
Subject: Re: Change in relocation of debug info
Date: Thu, 3 Jun 2021 15:02:48 -0400 [thread overview]
Message-ID: <114a7bb8-5146-a895-1cdf-ee75a5d4f3ec@polymtl.ca> (raw)
In-Reply-To: <ea507af6-b9bc-ca1e-26c0-ef8d7930f223@lcwb.coop>
On 2021-06-03 2:54 p.m., Rodney M. Bates wrote:
>
> Thanks. Using -f=no-pie has gotten me going for now. My build process
> has been supplying -fPIC for ages, to the older gcc, so I don't fully
> understand why it wasn't happening all along, but this works for now.
-fPIC is used at the compile step to produce code in the .o files that
_can_ be linked in a position-independent executable (or shared
library). But whether the output executable is position dependent or
not ultimately depends on the link step, whether -pie or -no-pie is
passed. And if neither are passed, it depends on the default setting of
the linker. That default setting was "no pie", but has changed to "pie"
pretty much everywhere in the last few years.
Simon
next prev parent reply other threads:[~2021-06-03 19:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-30 17:51 Rodney M. Bates
2021-05-31 15:08 ` Simon Marchi
2021-06-03 18:54 ` Rodney M. Bates
2021-06-03 19:02 ` Simon Marchi [this message]
2021-06-03 19:41 ` Rodney M. Bates
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=114a7bb8-5146-a895-1cdf-ee75a5d4f3ec@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb@sourceware.org \
--cc=rodney.m.bates@acm.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).