On Sun, Jan 6, 2013 at 8:07 AM, horseriver <horserivers@xxxxxxxxx> wrote: >> > >> > I am trying to compile linux kernel , in arch/i386/kernel , >> > kbuild need to build a vsyscall_int80.so , but it give this error : >> > >> > ld: arch/i386/kernel/vsyscall-int80.so: Not enough room for program headers >> >> I don't know what is wrong with your build of the Linux kernel. That >> kind of problem normally indicates a discrepancy between the linker >> script and the specific linker that you are using. It can also mean >> that the compiler is generating sections that the linker script does >> not expect. > > thanks! > > how can I get to know which ld-script files are used by ld when build this .so file ? This is a question about the Linux kernel build. I think if you run "make V=1" or something like that you will see the exact comment being used to invoke the linker. The linker script will probably be passed as a -T option. Ian