gcc 3.1 20020118 miscompiled ld.so on Linux/mips
H . J . Lu
hjl@lucon.org
Sun Jan 20 12:45:00 GMT 2002
On Sun, Jan 20, 2002 at 11:39:45AM -0800, H . J . Lu wrote:
> When I used gcc 3.1 20020118 to compile the current glibc from trunk
> on Linux/mips, I got
>
> # /export/build/gnu/glibc-3.1/build-mipsel-linux/elf/ld.so.1
> zsh: 30232 segmentation fault (core dumped) /export/build/gnu/glibc-3.1/build-mipsel-linux/elf/ld.so.1
>
> gcc 2.96 is ok. I am looking into it now.
>
It looks like we need to add -finline-limit=xxxx at least for mips. We
have to inline all functions in rtld.c if they are marked as inline
since we can't do relocation during ld.so bootstrap.
H.J.
More information about the Libc-alpha
mailing list