Date: Sun, 23 Sep 2012 18:19:24 -0700 From: Isaac Dunham <idunham@...abit.com> To: pcc-list@...d.ltu.se Cc: musl@...ts.openwall.com Subject: Compiling musl with pcc... With the new -print-file-name option for pcc, I've managed to get musl's configure to recognize pcc. (See pcc-configure.diff) But I've run into one other problem: when -mtune=generic -march=486 is passed to pcc in the linking stage, it appears that pcc passes some invalid option to ld (I get "Unrecognized option: tune=generic", as shown at the very end of make.pcc). Should the -m... options be omitted from what pcc passes to ld? Additionally, if I work around that, I get a segfault when running hello world (via .../lib/libc.so a.out): (gdb output) program received signal SIGSEGV, Segmentation fault. 0x755b91d9 in __syscall_cp () (gdb) where #0 0x755b91d9 in __syscall_cp () #1 0x7557268a in open64 () #2 0x755779ad in __dynlink () #3 0x7557858d in _start () I'll try rebuilding with -O0 -g3. (Rich: in case you're wondering, -Bsymbolic-functions is being properly passed) Thanks, Isaac Dunham <idunham@...abit.com> Download attachment "make.pcc" of type "application/octet-stream" (85450 bytes) View attachment "pcc-configure.diff" of type "text/x-diff" (944 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.