mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-14 07:38:41 +00:00
e9b63852ca
* Support for i386-sysv. configure.in: check for i386-*-sysv* and i386-*-sco*. i386coff.sc-sh: rewrote to support SVR3 by default. ldctor.c (find_constructors): preserve stat_ptr. ldlang.c (wild_doit): initialize vma and size of new output section to corresponding input section. This is required for shared library support. (lang_size_sections): don't modify vma and size of sections which are never loaded (for shared libraries). ldwrite.c (copy_and_relocate): copy the contents of any section which has contents, not just sections which are loaded (for shared libraries).
30 lines
599 B
Plaintext
30 lines
599 B
Plaintext
# Linker script for 386 COFF. This works on SVR3.2 and SCO Unix 3.2.2.
|
|
# .data2 handles SCO, which uses two data sections.
|
|
# Ian Taylor <ian@cygnus.com>.
|
|
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
${LIB_SEARCH_DIRS}
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
{
|
|
.text ${RELOCATING+ SIZEOF_HEADERS} : {
|
|
*(.init)
|
|
*(.text)
|
|
*(.fini)
|
|
${RELOCATING+ etext = .};
|
|
}
|
|
.data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
|
|
*(.data .data2)
|
|
${RELOCATING+ edata = .};
|
|
}
|
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
|
{
|
|
*(.bss)
|
|
*(COMMON)
|
|
${RELOCATING+ end = .};
|
|
}
|
|
}
|
|
EOF
|