LFS-6.6, Stage2, glibc, nscd.c:442
bruce.dubbs at gmail.com
Sat May 29 13:11:30 PDT 2010
Paul Rogers wrote:
>> The __stack_chk_guard which is only seen by grep in gcc, must have
>> gotten built in at some earlier step or possibly bled in from the
> How far back do you suppose? Stage 2 pass 1 or Stage 1 pass 2? I can
> quite confidently rip either out and replace it with my scripts.
> (UPMPMG; use package management, package management good)
> I don't suppose you have any idea what kind of parameter error might
> cause gcc's make to include it? /tools/lib does have libssp. I suppose
> that's indicative, eh? (Can't give you a listing at the moment, I'm on
> a different twinned box also running 6.1. But I can query my package
> management on the other box to see which step added libssp.)
In my reference build I have:
-rw-r--r-- 1 root root 26098 Apr 15 18:09 /mnt/lfs/tools/lib/libssp.a
-rwxr-xr-x 1 root root 925 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.la
lrwxrwxrwx 1 root root 15 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.so
lrwxrwxrwx 1 root root 15 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.so.0
-rwxr-xr-x 1 root root 12721 Apr 15 18:09 /mnt/lfs/tools/lib/libssp.so.0.0.0
The contenst of libssp.la are:
$ cat /mnt/lfs/tools/lib/libssp.la
# libssp.la - a libtool library file
# Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
# Names of this library.
library_names='libssp.so.0.0.0 libssp.so.0 libssp.so'
# The name of the static archive.
# Linker flags that can not go in dependency_libs.
# Libraries that this one depends upon.
# Names of additional weak libraries provided by this library
# Version information for libssp.
# Is this an already installed library?
# Should we warn about portability when linking against -modules?
# Files to dlopen/dlpreopen
# Directory that this library needs to be installed in:
$ nm -a /mnt/lfs/tools/lib/libssp.so.0.0.0|grep stack
0000000000001000 T __stack_chk_fail
0000000000001040 t __stack_chk_fail_local
0000000000201d60 B __stack_chk_guard
B is the uninitialized data section (known as BSS).
More information about the lfs-support