NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-arm/45520: -pie broken, breaks some pkgsrc builds.
>Number: 45520
>Category: port-arm
>Synopsis: execution of pie is broken, resulting in some broken pkgs
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-arm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 25 08:00:00 +0000 2011
>Originator: Ignatios Souvatzis
>Release: NetBSD 5.1
>Organization:
seal your e-mail: http://www.gnupg.org/
>Environment:
System: NetBSD marie 5.1 NetBSD 5.1 (MARIE) #0: Wed Jan 5 20:52:48 CET 2011
ignatios@random87:/var/itch/obj/shark/sys/arch/shark/compile/MARIE shark
Architecture: arm
Machine: shark
>Description:
PIE executables on ARM get SIGABORT.
>How-To-Repeat:
Try to build print/cups - it uses -pie in a lot of places, including
a helper program called "mantohtml" which is further used to translate
documentation, and results in aborts. Faster test:
% cat hello.c
int main() {
write(1, "hello\n", 6);
return 0;
}
% cat Makefile
MKMAN=no
PROG=hello
CFLAGS=-pie
LDFLAGS=-pie
.include <bsd.prog.mk>
test: hello
./hello
% make test
# compile hello/hello.o
cc -pie -Werror -c hello.c
# link hello/hello
cc -pie -o hello hello.o -Wl,-rpath-link,/lib -L/lib
-Wl,-rpath-link,/usr/lib -L/usr/lib
./hello
*** Signal 6
Stop.
make: stopped in /home/is/ctest/hello
make: stopped in /home/is/ctest/hello
>Fix:
Workaround might be to remove -pie everywhere.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index