dyn_lib fails
Pelle Hede <[email protected]> Wed, 08 Dec 2010 10:41:49 +0000
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
According to the CHANGES file, " work around Ubuntu who added -fstack-protector to their gcc, which added stack protector code to the function from the dietlibc startup code that sets up the registers and segments used by the stack protector mechanism. " ... I assumed that make dyn_lib would not fail on an ubuntu box. Unfortunately, it seems to fail at the end of the linking stage: env -u LD_RUN_PATH gcc -D__dietlibc__ -nostdlib -shared -o pic-i386/libc.so -pipe -nostdinc -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2 -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -fPIC [ long list of files ] pic-i386/execl.o: In function `execl': execl.c:(.text+0x70): undefined reference to `__stack_chk_fail_local' pic-i386/execle.o: In function `execle': execle.c:(.text+0x73): undefined reference to `__stack_chk_fail_local' pic-i386/exec_lib.o: In function `__exec_shell': exec_lib.c:(.text+0x97): undefined reference to `__stack_chk_fail_local' pic-i386/execlp.o: In function `execlp': execlp.c:(.text+0x71): undefined reference to `__stack_chk_fail_local' pic-i386/execvp.o: In function `execvp': execvp.c:(.text+0x1bc): undefined reference to `__stack_chk_fail_local' pic-i386/ftw64.o:ftw64.c:(.text+0x279): more undefined references to `__stack_chk_fail_local' follow /usr/bin/ld: pic-i386/libc.so: hidden symbol `__stack_chk_fail_local' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [pic-i386/libc.so] Error 1 Any pointers for a newbie? I'm on a 32bit Ubuntu 10.04.1 LTS. -- Pelle Hede Developer FRISK Software International Thverholti 18 IS-105 Reykjavik Iceland