This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/22362] Installed crt1.o, crti,.o and crtn.o files are used with -m32


https://sourceware.org/bugzilla/show_bug.cgi?id=22362

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to joseph@codesourcery.com from comment #1)
> You'll need to give a more detailed explanation of what the problem is and 
> why it's not actually a mistake in the way you are configuring or building 
> glibc.  gcc -B should not be used in the glibc build.  I build 32-bit 
> glibc with 64-bit compilers routinely and have never seen this problem.

When I built i686 glibc on x86-64 using x86-64 GCC with -m32, for
crypt/libcrypt.so, I got

gcc -m32   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld-linux.so.2 
-B/export/build/gnu/glibc-32bit/build-i686-linux/csu/ 
-Wl,--version-script=/export/build/gnu/glibc-32bit/build-i686-linux/libcrypt.map
-Wl,-soname=libcrypt.so.1 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both  
-L/export/build/gnu/glibc-32bit/build-i686-linux
-L/export/build/gnu/glibc-32bit/build-i686-linux/math
-L/export/build/gnu/glibc-32bit/build-i686-linux/elf
-L/export/build/gnu/glibc-32bit/build-i686-linux/dlfcn
-L/export/build/gnu/glibc-32bit/build-i686-linux/nss
-L/export/build/gnu/glibc-32bit/build-i686-linux/nis
-L/export/build/gnu/glibc-32bit/build-i686-linux/rt
-L/export/build/gnu/glibc-32bit/build-i686-linux/resolv
-L/export/build/gnu/glibc-32bit/build-i686-linux/crypt
-L/export/build/gnu/glibc-32bit/build-i686-linux/mathvec
-L/export/build/gnu/glibc-32bit/build-i686-linux/support
-L/export/build/gnu/glibc-32bit/build-i686-linux/nptl
-Wl,-rpath-link=/export/build/gnu/glibc-32bit/build-i686-linux:/export/build/gnu/glibc-32bit/build-i686-linux/math:/export/build/gnu/glibc-32bit/build-i686-linux/elf:/export/build/gnu/glibc-32bit/build-i686-linux/dlfcn:/export/build/gnu/glibc-32bit/build-i686-linux/nss:/export/build/gnu/glibc-32bit/build-i686-linux/nis:/export/build/gnu/glibc-32bit/build-i686-linux/rt:/export/build/gnu/glibc-32bit/build-i686-linux/resolv:/export/build/gnu/glibc-32bit/build-i686-linux/crypt:/export/build/gnu/glibc-32bit/build-i686-linux/mathvec:/export/build/gnu/glibc-32bit/build-i686-linux/support:/export/build/gnu/glibc-32bit/build-i686-linux/nptl
-o /export/build/gnu/glibc-32bit/build-i686-linux/crypt/libcrypt.so -T
/export/build/gnu/glibc-32bit/build-i686-linux/shlib.lds
/export/build/gnu/glibc-32bit/build-i686-linux/csu/abi-note.o
-Wl,--whole-archive
/export/build/gnu/glibc-32bit/build-i686-linux/crypt/libcrypt_pic.a
-Wl,--no-whole-archive   -Wl,--start-group
/export/build/gnu/glibc-32bit/build-i686-linux/libc.so
/export/build/gnu/glibc-32bit/build-i686-linux/libc_nonshared.a -Wl,--as-needed
/export/build/gnu/glibc-32bit/build-i686-linux/elf/ld.so -Wl,--no-as-needed
-Wl,--end-group

When I added -v, it shows /lib/crt*.o are passed to linker.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]