From: "Rodney M. Bates" <rodney_bates@lcwb.coop>
To: Simon Marchi <simon.marchi@polymtl.ca>,
rodney.m.bates@acm.org, gdb@sourceware.org
Subject: Re: Change in relocation of debug info
Date: Thu, 3 Jun 2021 14:41:49 -0500 [thread overview]
Message-ID: <0f3eff38-295d-e482-a450-10be8ac67c72@lcwb.coop> (raw)
In-Reply-To: <114a7bb8-5146-a895-1cdf-ee75a5d4f3ec@polymtl.ca>
On 6/3/21 2:02 PM, Simon Marchi via Gdb wrote:
> 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.
Thanks. Now it makes sense.
>
> Simon
>
--
Rodney Bates
rodney.m.bates@acm.org
prev parent reply other threads:[~2021-06-03 19:42 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
2021-06-03 19:41 ` Rodney M. Bates [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=0f3eff38-295d-e482-a450-10be8ac67c72@lcwb.coop \
--to=rodney_bates@lcwb.coop \
--cc=gdb@sourceware.org \
--cc=rodney.m.bates@acm.org \
--cc=simon.marchi@polymtl.ca \
/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).