Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection
@ 2019-01-11  7:39 bugzilla at busybox.net
  2019-01-11  7:44 ` [Buildroot] [Bug 11616] " bugzilla at busybox.net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-11  7:39 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

            Bug ID: 11616
           Summary: 2018.02.09 fails to build libzlib with full RELRO
                    protection
           Product: buildroot
           Version: 2018.02.9
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: mail at kkrach.de
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 7911
  --> https://bugs.busybox.net/attachment.cgi?id=7911&action=edit
defconfig which fails

Compiling libzlib the given defconfig (powerpc, GCC 7.3, BR2_RELRO_FULL=y)
fails with

     sysroot/usr/lib/Scrt1.o: In function `_start':
(.text+0x42): undefined reference to `main'
     collect2: error: ld returned 1 exit status


Switching RELRO off or to partial, compiles successfully.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
@ 2019-01-11  7:44 ` bugzilla at busybox.net
  2019-01-11  7:45 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-11  7:44 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #1 from Karl Krach <mail@kkrach.de> ---
Created attachment 7916
  --> https://bugs.busybox.net/attachment.cgi?id=7916&action=edit
compile output with full RELRO (failed)

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
  2019-01-11  7:44 ` [Buildroot] [Bug 11616] " bugzilla at busybox.net
@ 2019-01-11  7:45 ` bugzilla at busybox.net
  2019-01-11  7:46 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-11  7:45 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #2 from Karl Krach <mail@kkrach.de> ---
Created attachment 7921
  --> https://bugs.busybox.net/attachment.cgi?id=7921&action=edit
compile output with partial RELRO (succeeded)

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
  2019-01-11  7:44 ` [Buildroot] [Bug 11616] " bugzilla at busybox.net
  2019-01-11  7:45 ` bugzilla at busybox.net
@ 2019-01-11  7:46 ` bugzilla at busybox.net
  2019-01-11 14:16 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-11  7:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

Karl Krach <mail@kkrach.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #7911|application/octet-stream    |text/plain
          mime type|                            |

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2019-01-11  7:46 ` bugzilla at busybox.net
@ 2019-01-11 14:16 ` bugzilla at busybox.net
  2019-01-12  9:21 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-11 14:16 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #3 from Matt Weber <matthew.weber@rockwellcollins.com> ---
Could you do a build with this stock config in Buildroot and verify the issue
is repeatable?

qemu_ppc64_e5500_defconfig


This doesn't isolate the issue to the specific architecture but should simplify
your defconfig so I can help further.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2019-01-11 14:16 ` bugzilla at busybox.net
@ 2019-01-12  9:21 ` bugzilla at busybox.net
  2019-01-12 13:59 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-12  9:21 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Matt: the bug is reported against 2018.02.9, i.e the LTS branch and not 2018.11
or master. Back in 2018.02.x, the support in the wrapper for RELRO was not
there.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2019-01-12  9:21 ` bugzilla at busybox.net
@ 2019-01-12 13:59 ` bugzilla at busybox.net
  2019-01-14  7:49 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-12 13:59 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #5 from Matt Weber <matthew.weber@rockwellcollins.com> ---
Tho(In reply to Thomas Petazzoni from comment #4)

Oh right.  So then for this failure case it is a known issue that the ordering
of linker steps in most packages are not correct to support RELRO full.  Which
is what lead to using the toolchain wrapper to adjust ordering as the current
solution.

Karl, are you able to bump versions to 2018.11 or next month to the new LTS? 
If not I can help you find the series of commits to add to your LTS that enable
the toolchain wrapper method, however you'd have to carry your own LTS branch
locally for this to work.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2019-01-12 13:59 ` bugzilla at busybox.net
@ 2019-01-14  7:49 ` bugzilla at busybox.net
  2019-01-14 14:06 ` bugzilla at busybox.net
  2019-01-14 21:33 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-14  7:49 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #6 from Karl Krach <mail@kkrach.de> ---
Matt, for me partial RELRO is fine for now. I will switch to the next LTS when
available. Thanks.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2019-01-14  7:49 ` bugzilla at busybox.net
@ 2019-01-14 14:06 ` bugzilla at busybox.net
  2019-01-14 21:33 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-14 14:06 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

--- Comment #7 from Matt Weber <matthew.weber@rockwellcollins.com> ---
If you did need to do full RELRO, you could pull the following commits in on
your LTS to change the toolchain-wrapper behavior.

git cherry-pick d4f5801027f3329fb6c2cd096f3396d3cd067390 
01d8a0a9455f9408819d7f135fba5139f0672507
7484c1c3b8065d6f2f5a67607e9917ecfea022eb
f10822d151085bcbfecd0ecf2542ac5f5623fd9d 


Care to mark this one closed?

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [Bug 11616] 2018.02.09 fails to build libzlib with full RELRO protection
  2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2019-01-14 14:06 ` bugzilla at busybox.net
@ 2019-01-14 21:33 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2019-01-14 21:33 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=11616

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #8 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Full RELRO has been fixed post-2018.02 by changing the toolchain-wrapper. This
is too invasive to backport in 2018.02, so only later Buildroot versions will
have proper full RELRO support.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-14 21:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11  7:39 [Buildroot] [Bug 11616] New: 2018.02.09 fails to build libzlib with full RELRO protection bugzilla at busybox.net
2019-01-11  7:44 ` [Buildroot] [Bug 11616] " bugzilla at busybox.net
2019-01-11  7:45 ` bugzilla at busybox.net
2019-01-11  7:46 ` bugzilla at busybox.net
2019-01-11 14:16 ` bugzilla at busybox.net
2019-01-12  9:21 ` bugzilla at busybox.net
2019-01-12 13:59 ` bugzilla at busybox.net
2019-01-14  7:49 ` bugzilla at busybox.net
2019-01-14 14:06 ` bugzilla at busybox.net
2019-01-14 21:33 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox