|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/23428] ld does not put program headers in a load segment when static linking an executable |
Date: | Thu, 19 Jul 2018 02:24:22 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23428 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-07-19 CC| |hjl.tools at gmail dot com Ever confirmed|0 |1 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- pr23428 branch: https://github.com/hjl-tools/simple-linux/tree/pr23428 has a small run-time testcase: address@hidden simple-linux]$ make gcc -g -O0 -fno-asynchronous-unwind-tables -c -o test.o test.c gcc -g -c -o start.o start.S gcc -g -c -o syscall.o syscall.S ld -z separate-code -o test test.o start.o syscall.o ./test; echo $? /bin/sh: line 1: 16441 Segmentation fault (core dumped) ./test 139 address@hidden simple-linux]$ gcc test.o address@hidden simple-linux]$ ./a.out address@hidden simple-linux]$ echo $? 0 address@hidden simple-linux]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |