mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-03 09:41:26 +00:00
bfbdc80f0a
bfd too #. * ldexp.c, ldlang.c: now build memory shape tree in obstacks rather than with raw malloc, makes it easier to track where memory is going. * ldsym.h, ldsym.c: create obstack for all global symbols too. * ldwrite.c (ldwrite): moved malloc so only used when needed. * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
35 lines
440 B
Plaintext
Executable File
35 lines
440 B
Plaintext
Executable File
cat <<EOF
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
ENTRY(start)
|
|
|
|
SECTIONS {
|
|
.text ${RELOCATING+${TEXT_START_ADDR}} :
|
|
{
|
|
*(.text);
|
|
*(.text1);
|
|
*(.text2);
|
|
${RELOCATING+_etext = .};
|
|
}
|
|
.lit . :
|
|
{
|
|
*(.lit);
|
|
${RELOCATING+_elit = .};
|
|
}
|
|
.data . :
|
|
{
|
|
*(.data);
|
|
*(.data1);
|
|
*(.data2);
|
|
${RELOCATING+_edata = .};
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
}
|
|
|
|
.bss . :
|
|
{
|
|
*(COMMON)
|
|
*(.bss)
|
|
${RELOCATING+_end = .};
|
|
}
|
|
}
|
|
EOF
|