summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-10-20 14:06:46 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-10-20 14:06:46 +0000
commit5acf45f6cb62ffd646c025e4a2b1218e82e27422 (patch)
tree9892bbad6ae39c5339be82810f8a17d2f0a9fc7f
parentd36ae2cec9355bd721f470cf4924c01fa3be04f7 (diff)
downloadcygnal-5acf45f6cb62ffd646c025e4a2b1218e82e27422.tar.gz
cygnal-5acf45f6cb62ffd646c025e4a2b1218e82e27422.tar.bz2
cygnal-5acf45f6cb62ffd646c025e4a2b1218e82e27422.zip
libgloss/
* m68k/cf.sc: Add linkonce sections and DWARF sections.
-rw-r--r--ChangeLog.csl6
-rw-r--r--libgloss/m68k/cf.sc26
2 files changed, 32 insertions, 0 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index f59b5ffe1..064627415 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,9 @@
+2006-10-20 Vladimir Prus <vladimir@codesourcery.com>
+
+ libgloss/
+ * m68k/cf.sc: Add linkonce sections and
+ DWARF sections.
+
2006-10-07 Nathan Sidwell <nathan@codesourcery.com>
libgloss/
diff --git a/libgloss/m68k/cf.sc b/libgloss/m68k/cf.sc
index 07472a9c2..98eb96fe6 100644
--- a/libgloss/m68k/cf.sc
+++ b/libgloss/m68k/cf.sc
@@ -31,6 +31,7 @@ SECTIONS
CREATE_OBJECT_SYMBOLS
cf-crt0.o(.text)
*(.text .text.*)
+ *(.gnu.linkonce.t.*)
. = ALIGN(0x4);
/* These are for running static constructors and destructors under ELF. */
@@ -49,6 +50,7 @@ SECTIONS
KEEP (*crtend.o(.jcr))
*(.rodata .rodata.*)
+ *(.gnu.linkonce.r.*)
. = ALIGN(0x4);
*(.gcc_except_table)
@@ -83,6 +85,7 @@ SECTIONS
*(.got.plt) *(.got)
*(.shdata)
*(.data .data.*)
+ *(.gnu.linkonce.d.*)
. = ALIGN (4);
_edata = .;
} >ram ${ROM:+AT>rom}
@@ -92,6 +95,7 @@ SECTIONS
__bss_start = . ;
*(.shbss)
*(.bss .bss.*)
+ *(.gnu.linkonce.b.*)
*(COMMON)
. = ALIGN (8);
_end = .;
@@ -107,5 +111,27 @@ SECTIONS
{
*(.stabstr)
}
+
+ /* DWARF debug sections.
+ Symbols in the DWARF debugging sections are relative to the beginning
+ of the section so we begin them at 0. */
+ /* DWARF 1 */
+ .debug 0 : { *(.debug) }
+ .line 0 : { *(.line) }
+ /* GNU DWARF 1 extensions */
+ .debug_srcinfo 0 : { *(.debug_srcinfo) }
+ .debug_sfnames 0 : { *(.debug_sfnames) }
+ /* DWARF 1.1 and DWARF 2 */
+ .debug_aranges 0 : { *(.debug_aranges) }
+ .debug_pubnames 0 : { *(.debug_pubnames) }
+ /* DWARF 2 */
+ .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
+ .debug_abbrev 0 : { *(.debug_abbrev) }
+ .debug_line 0 : { *(.debug_line) }
+ .debug_frame 0 : { *(.debug_frame) }
+ .debug_str 0 : { *(.debug_str) }
+ .debug_loc 0 : { *(.debug_loc) }
+ .debug_macinfo 0 : { *(.debug_macinfo) }
+
}
EOF