more on ld mips
reedkotler@hotmail.com
reedkotler@hotmail.com
Tue Aug 15 20:50:00 GMT 2000
ÃÂ it looks like perhaps entry() is illegal, but
i'm not sure.
--------------------------------------------------------------------------------------
ÃÂ
ÃÂ
bash-2.02$ ÃÂ
/usr/local/bin/mips-pe-ld.exe ÃÂ
--verbose --entry 1000
GNU ld version 2.10 (with BFD 2.10)
ÃÂ Supported
emulations:
ÃÂ ÃÂ
mipspe
using internal linker script:
==================================================
OUTPUT_FORMAT(pei-mips)
OUTPUT_ARCH(mips)
ÃÂ SEARCH_DIR(/usr/local//lib);
ENTRY()
SECTIONS
{
ÃÂ .text ÃÂ __image_base__ +
__section_alignment__ ÃÂ
:
ÃÂ
{
ÃÂ ÃÂ ÃÂ ÃÂ
*(.init)
ÃÂ ÃÂ ÃÂ
*(.text)
ÃÂ ÃÂ ÃÂ
*(SORT(.text$*))
ÃÂ ÃÂ ÃÂ
*(.glue_7t)
ÃÂ ÃÂ ÃÂ
*(.glue_7)
ÃÂ ÃÂ ÃÂ ÃÂ
___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
LONG (-1); *(.ctors); *(.ctor); LONG (0);
ÃÂ ÃÂ ÃÂ ÃÂ
___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
LONG (-1); *(.dtors); *(.dtor); ÃÂ
LONG (0);
ÃÂ ÃÂ ÃÂ ÃÂ
*(.fini)
ÃÂ ÃÂ ÃÂ /*
??? Why is .gcc_exc here? ÃÂ
*/
ÃÂ ÃÂ ÃÂ ÃÂ
*(.gcc_exc)
ÃÂ ÃÂ ÃÂ ÃÂ
etext = .;
ÃÂ ÃÂ ÃÂ
*(.gcc_except_table)
ÃÂ
}
ÃÂ /* The Cygwin32
library uses a section to avoid copying certain data
ÃÂ ÃÂ ÃÂ ÃÂ
on fork. ÃÂ This used to be
named ".data". ÃÂ The linker
used
ÃÂ ÃÂ ÃÂ ÃÂ
to include this between __data_start__ and __data_end__, but
that
ÃÂ ÃÂ ÃÂ ÃÂ
breaks building the cygwin32 dll. ÃÂ
Instead, we name the section
ÃÂ ÃÂ ÃÂ ÃÂ
".data_cygwin_nocopy" and explictly include it after __data_end__.
*/
ÃÂ .data
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
__data_start__ = . ;
ÃÂ ÃÂ ÃÂ
*(.data)
ÃÂ ÃÂ ÃÂ
*(.data2)
ÃÂ ÃÂ ÃÂ
*(SORT(.data$*))
ÃÂ ÃÂ ÃÂ
__data_end__ = . ;
ÃÂ ÃÂ ÃÂ
*(.data_cygwin_nocopy)
ÃÂ
}
ÃÂ .rdata
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.rdata)
ÃÂ ÃÂ ÃÂ
*(SORT(.rdata$*))
ÃÂ ÃÂ ÃÂ
*(.eh_frame)
ÃÂ
}
ÃÂ .pdata
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.pdata)
ÃÂ
}
ÃÂ .bss
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
__bss_start__ = . ;
ÃÂ ÃÂ ÃÂ
*(.bss)
ÃÂ ÃÂ ÃÂ
*(COMMON)
ÃÂ ÃÂ ÃÂ
__bss_end__ = . ;
ÃÂ
}
ÃÂ .edata
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.edata)
ÃÂ
}
ÃÂ /DISCARD/
:
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.debug$S)
ÃÂ ÃÂ ÃÂ
*(.debug$T)
ÃÂ ÃÂ ÃÂ
*(.debug$F)
ÃÂ ÃÂ ÃÂ
*(.drectve)
ÃÂ
}
ÃÂ .idata
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ /*
This cannot currently be handled with grouped sections.
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ See
pe.em:sort_sections. ÃÂ
*/
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$2)
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$3)
ÃÂ ÃÂ ÃÂ /*
These zeroes mark the end of the import list. ÃÂ */
ÃÂ ÃÂ ÃÂ
LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$4)
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$5)
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$6)
ÃÂ ÃÂ ÃÂ
SORT(*)(.idata$7)
ÃÂ
}
ÃÂ .CRT
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(SORT(.CRT$*))
ÃÂ
}
ÃÂ .endjunk
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ /*
end is deprecated, don't use it */
ÃÂ ÃÂ ÃÂ ÃÂ
end = .;
ÃÂ ÃÂ ÃÂ ÃÂ
_end = .;
ÃÂ ÃÂ ÃÂ ÃÂ
__end__ = .;
ÃÂ
}
ÃÂ .rsrc
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.rsrc)
ÃÂ ÃÂ ÃÂ
*(SORT(.rsrc$*))
ÃÂ
}
ÃÂ .reloc
BLOCK(__section_alignment__) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ
*(.reloc)
ÃÂ
}
ÃÂ .stab
BLOCK(__section_alignment__) (NOLOAD) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ [
stab ]
ÃÂ
}
ÃÂ .stabstr
BLOCK(__section_alignment__) (NOLOAD) :
ÃÂ
{
ÃÂ ÃÂ ÃÂ [
stabstr ]
ÃÂ
}
}
ÃÂ
ÃÂ
==================================================
/usr/local/bin/mips-pe-ld.exe:built
in linker script:4: parse error
More information about the Binutils
mailing list