All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 11321] New: Latest master fails to build readline with RELRO FULL
@ 2018-09-11  7:23 bugzilla at busybox.net
  2018-09-11 13:02 ` [Buildroot] [Bug 11321] " bugzilla at busybox.net
  2018-11-02 10:10 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2018-09-11  7:23 UTC (permalink / raw)
  To: buildroot

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

            Bug ID: 11321
           Summary: Latest master fails to build readline with RELRO FULL
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: tpearson at raptorengineering.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

When RELRO is set to Full, readline fails to build.  RELRO Partial has no
issues.

/home/buildroot/project/buildroot# make
>>> readline 7.0 Building
PATH="/home/buildroot/project/buildroot/output/host/bin:/home/buildroot/project/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 /usr/bin/make -j16  -C
/home/buildroot/project/buildroot/output/build/readline-7.0/
make[1]: Entering directory
'/home/buildroot/project/buildroot/output/build/readline-7.0'
test -d shlib || mkdir shlib
( cd shlib ; /usr/bin/make -w -j --jobserver-fds=3,4 all )
make[2]: Entering directory
'/home/buildroot/project/buildroot/output/build/readline-7.0/shlib'
rm -f libreadline.so.7.0
rm -f libhistory.so.7.0
/home/buildroot/project/buildroot/output/host/bin/powerpc64le-buildroot-linux-gnu-gcc
-shared -Wl,-soname,libreadline.so.7.0 -pie -Wl,-z,now -Wl,-z,relro
-Wl,-rpath,/usr/lib -Wl,-soname,`basename libreadline.so.7.0 .0` -o
libreadline.so.7.0 readline.so vi_mode.so funmap.so keymaps.so parens.so
search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so
kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so
misc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so
tilde.so colors.so parse-colors.so xmalloc.so xfree.so compat.so -lncurses
/home/buildroot/project/buildroot/output/host/bin/powerpc64le-buildroot-linux-gnu-gcc
-shared -Wl,-soname,libhistory.so.7.0 -pie -Wl,-z,now -Wl,-z,relro
-Wl,-rpath,/usr/lib -Wl,-soname,`basename libhistory.so.7.0 .0` -o
libhistory.so.7.0 history.so histexpand.so histfile.so histsearch.so shell.so
mbutil.so xmalloc.so xfree.so -lncurses
/home/buildroot/project/buildroot/output/host/lib/gcc/powerpc64le-buildroot-linux-gnu/8.2.0/../../../../powerpc64le-buildroot-linux-gnu/bin/ld:
/home/buildroot/project/buildroot/output/host/powerpc64le-buildroot-linux-gnu/sysroot/usr/lib/../lib64/Scrt1.o:(.data.rel.ro.local+0x8):
undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:180: recipe for target 'libhistory.so.7.0' failed
make[2]: *** [libhistory.so.7.0] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/buildroot/project/buildroot/output/host/lib/gcc/powerpc64le-buildroot-linux-gnu/8.2.0/../../../../powerpc64le-buildroot-linux-gnu/bin/ld:
/home/buildroot/project/buildroot/output/host/powerpc64le-buildroot-linux-gnu/sysroot/usr/lib/../lib64/Scrt1.o:(.data.rel.ro.local+0x8):
undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:176: recipe for target 'libreadline.so.7.0' failed
make[2]: *** [libreadline.so.7.0] Error 1
make[2]: Leaving directory
'/home/buildroot/project/buildroot/output/build/readline-7.0/shlib'
Makefile:209: recipe for target 'shared' failed
make[1]: *** [shared] Error 2
make[1]: Leaving directory
'/home/buildroot/project/buildroot/output/build/readline-7.0'
package/pkg-generic.mk:229: recipe for target
'/home/buildroot/project/buildroot/output/build/readline-7.0/.stamp_built'
failed
make: ***
[/home/buildroot/project/buildroot/output/build/readline-7.0/.stamp_built]
Error 2

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

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

* [Buildroot] [Bug 11321] Latest master fails to build readline with RELRO FULL
  2018-09-11  7:23 [Buildroot] [Bug 11321] New: Latest master fails to build readline with RELRO FULL bugzilla at busybox.net
@ 2018-09-11 13:02 ` bugzilla at busybox.net
  2018-11-02 10:10 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2018-09-11 13:02 UTC (permalink / raw)
  To: buildroot

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

--- Comment #1 from Matt Weber <matthew.weber@rockwellcollins.com> ---
Would you mind providing an example defconfig that reproduces this?  I'm
working on an update to the hardening approach, as there are link time issues
with the way the current flags are included.  This maybe related to your issue
and I'll give it a test.

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

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

* [Buildroot] [Bug 11321] Latest master fails to build readline with RELRO FULL
  2018-09-11  7:23 [Buildroot] [Bug 11321] New: Latest master fails to build readline with RELRO FULL bugzilla at busybox.net
  2018-09-11 13:02 ` [Buildroot] [Bug 11321] " bugzilla at busybox.net
@ 2018-11-02 10:10 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2018-11-02 10:10 UTC (permalink / raw)
  To: buildroot

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

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

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

--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
This is fixed by the patches from Matt that add hardening awareness in the
toolchain wrapper, and which have been merged in master as of:

394bdd11fc1f741c88c89f0e71571d87a29ab627 BR2_FORTIFY*: toolchain wrapper
limitation note
f10822d151085bcbfecd0ecf2542ac5f5623fd9d toolchain/toolchain-wrapper: add
BR2_SSP_* support
7484c1c3b8065d6f2f5a67607e9917ecfea022eb toolchain/toolchain-wrapper: add
BR2_RELRO_

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

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

end of thread, other threads:[~2018-11-02 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11  7:23 [Buildroot] [Bug 11321] New: Latest master fails to build readline with RELRO FULL bugzilla at busybox.net
2018-09-11 13:02 ` [Buildroot] [Bug 11321] " bugzilla at busybox.net
2018-11-02 10:10 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.