[PATCH] Create ".dynamic" section earlier

Fred Fish fnf@specifix.com
Fri Jun 9 15:46:00 GMT 2006


On Friday 09 June 2006 11:03, H. J. Lu wrote:
> I may have missed this one. Do you have a testcase?

Here's a simple one:

$ cat main.c
main ()
{
}

$ mips-elf-gcc -shared -o main main.c -Tidt.ld
/links/opt-local/latest/trunk/bin/../lib/gcc/mips-elf/4.2.0/../../../../mips-elf/bin/ld: main: The first section in the PT_DYNAMIC segment is not the .dynamic section
/links/opt-local/latest/trunk/bin/../lib/gcc/mips-elf/4.2.0/../../../../mips-elf/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status





More information about the Binutils mailing list