Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Kundrát" <jan.kundrat@cesnet.cz>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gcc: Fix build failure related to -fPIC for x86_64 -> i686 builds
Date: Wed, 19 Apr 2017 18:23:22 +0200	[thread overview]
Message-ID: <71cfdaf7-367d-44de-a1c6-9041e269c8de@cesnet.cz> (raw)

> Without this patch, I cannot build the toolchain (both host-gcc-initial
> and -final) on Gentoo's amd64 using GCC 4.9.3:
>
>   
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld:
>   gcov.o: relocation R_X86_64_32 against `.rodata.str1.8' can not
>   be used when making a shared object; recompile with -fPIC

One important piece I forgot to add -- I'm running "Hardened Gentoo GCC" 
which enables PIE by default [1] [2]. As such, this might explain why other 
are (presumably) not seeing this problem.

BTW, I cannot find my original submission on patchwork. Was that e-mail OK? 
I see it in the ML archive [3].

With kind regards,
Jan

[1] 
https://wiki.gentoo.org/wiki/Hardened/Toolchain#Automatic_generation_of_Position_Independent_Executables_.28PIEs.29
[2] 
https://wiki.gentoo.org/wiki/Hardened/Toolchain#Toolchain_modifications_for_automatic_PIEs
[3] http://lists.busybox.net/pipermail/buildroot/2017-April/189441.html

             reply	other threads:[~2017-04-19 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 16:23 Jan Kundrát [this message]
2017-04-23 22:06 ` [Buildroot] [PATCH] gcc: Fix build failure related to -fPIC for x86_64 -> i686 builds Arnout Vandecappelle
2017-04-24 11:19   ` Jan Kundrát
2017-04-24 20:21     ` Arnout Vandecappelle
2017-04-25 11:17       ` Jan Kundrát
  -- strict thread matches above, loose matches on Subject: below --
2017-04-12 21:09 Jan Kundrát

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=71cfdaf7-367d-44de-a1c6-9041e269c8de@cesnet.cz \
    --to=jan.kundrat@cesnet.cz \
    --cc=buildroot@busybox.net \
    /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