diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-08-27 16:32:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-28 13:47:41 +0200 |
commit | 29974c5147a21bd9744183136c88147731c14b49 (patch) | |
tree | 2a035f130922985985fa9d626ac740050c5c66f2 /arch/sandbox/board | |
parent | bc195edea16dc6eec7d50a1d9862afe3aa93eb75 (diff) | |
download | barebox-29974c5147a21bd9744183136c88147731c14b49.tar.gz barebox-29974c5147a21bd9744183136c88147731c14b49.tar.xz |
sandbox: compile with symbol -fvisibility=hidden
barebox defines many symbols that are reserved for the C implementation.
This collides with the libc, when building barebox for ARCH=sandbox.
Specify -fvsibility-hidden, so libraries barebox is linked against don't
inadvertently use barebox' functions.
This fixes a heap corruption occurring when issuing fb0.enable=1 on my
system, because X11 used strdup out of barebox, but free out of glibc[1]:
binding file /lib/x86_64-linux-gnu/libX11.so.6 [0] to
./barebox [0]: normal symbol l `strdup' [GLIBC_2.2.5]
[...]
binding file /lib/x86_64-linux-gnu/libc.so.6 [0] to
/lib/x86_64-linux-gnu/libc.so.6 [0]: normal symbol `free' [GLIBC_2.2.5]
[1]: cf. CFLAGS +=-Dfree=barebox_free in arch/sandbox/Makefile
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board')
0 files changed, 0 insertions, 0 deletions