* avrtiny.sc: Apply avr.sc fixes.

This commit is contained in:
Denis Chertykov
2014-11-11 20:44:03 +03:00
parent 0f35c779a9
commit 51b26797b4
2 changed files with 28 additions and 40 deletions

View File

@ -1,3 +1,7 @@
2014-10-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* avrtiny.sc: Apply avr.sc fixes.
2014-11-04 Alan Modra <amodra@gmail.com> 2014-11-04 Alan Modra <amodra@gmail.com>
* emultempl/spu_icache.o_c: Regenerate. * emultempl/spu_icache.o_c: Regenerate.

View File

@ -96,24 +96,29 @@ SECTIONS
KEEP(*(.vectors)) KEEP(*(.vectors))
/* For data that needs to reside in the lower 64k of progmem. */ /* For data that needs to reside in the lower 64k of progmem. */
*(.progmem.gcc*) ${RELOCATING+ *(.progmem.gcc*)}
*(.progmem*)
${RELOCATING+. = ALIGN(2);}
/* PR 13812: Placing the trampolines here gives a better chance
that they will be in range of the code that uses them. */
${RELOCATING+. = ALIGN(2);}
${CONSTRUCTING+ __trampolines_start = . ; } ${CONSTRUCTING+ __trampolines_start = . ; }
/* The jump trampolines for the 16-bit limited relocs will reside here. */ /* The jump trampolines for the 16-bit limited relocs will reside here. */
*(.trampolines) *(.trampolines)
*(.trampolines*) ${RELOCATING+ *(.trampolines*)}
${CONSTRUCTING+ __trampolines_end = . ; } ${CONSTRUCTING+ __trampolines_end = . ; }
${RELOCATING+ *(.progmem*)}
${RELOCATING+. = ALIGN(2);}
/* For future tablejump instruction arrays for 3 byte pc devices. /* For future tablejump instruction arrays for 3 byte pc devices.
We don't relax jump/call instructions within these sections. */ We don't relax jump/call instructions within these sections. */
*(.jumptables) *(.jumptables)
*(.jumptables*) ${RELOCATING+ *(.jumptables*)}
/* For code that needs to reside in the lower 128k progmem. */ /* For code that needs to reside in the lower 128k progmem. */
*(.lowtext) *(.lowtext)
*(.lowtext*) ${RELOCATING+ *(.lowtext*)}
${CONSTRUCTING+ __ctors_start = . ; } ${CONSTRUCTING+ __ctors_start = . ; }
${CONSTRUCTING+ *(.ctors) } ${CONSTRUCTING+ *(.ctors) }
@ -148,7 +153,7 @@ SECTIONS
KEEP (*(.init9)) KEEP (*(.init9))
*(.text) *(.text)
${RELOCATING+. = ALIGN(2);} ${RELOCATING+. = ALIGN(2);}
*(.text.*) ${RELOCATING+ *(.text.*)}
${RELOCATING+. = ALIGN(2);} ${RELOCATING+. = ALIGN(2);}
*(.fini9) /* _exit() starts here. */ *(.fini9) /* _exit() starts here. */
KEEP (*(.fini9)) KEEP (*(.fini9))
@ -173,25 +178,24 @@ SECTIONS
${RELOCATING+ _etext = . ; } ${RELOCATING+ _etext = . ; }
} ${RELOCATING+ > text} } ${RELOCATING+ > text}
.data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))} .data ${RELOCATING-0} :
{ {
${RELOCATING+ PROVIDE (__data_start = .) ; } ${RELOCATING+ PROVIDE (__data_start = .) ; }
*(.data) *(.data)
KEEP (*(.data)) ${RELOCATING+ *(.data*)}
*(.data*)
*(.rodata) /* We need to include .rodata here if gcc is used */ *(.rodata) /* We need to include .rodata here if gcc is used */
*(.rodata*) /* with -fdata-sections. */ ${RELOCATING+ *(.rodata*)} /* with -fdata-sections. */
*(.gnu.linkonce.d*) *(.gnu.linkonce.d*)
${RELOCATING+. = ALIGN(2);} ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ _edata = . ; } ${RELOCATING+ _edata = . ; }
${RELOCATING+ PROVIDE (__data_end = .) ; } ${RELOCATING+ PROVIDE (__data_end = .) ; }
} ${RELOCATING+ > data} } ${RELOCATING+ > data ${RELOCATING+AT> text}}
.bss ${RELOCATING-0} :${RELOCATING+ AT (ADDR (.bss))} .bss ${RELOCATING+ ADDR(.data) + SIZEOF (.data)} ${RELOCATING-0} :${RELOCATING+ AT (ADDR (.bss))}
{ {
${RELOCATING+ PROVIDE (__bss_start = .) ; } ${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss) *(.bss)
*(.bss*) ${RELOCATING+ *(.bss*)}
*(COMMON) *(COMMON)
${RELOCATING+ PROVIDE (__bss_end = .) ; } ${RELOCATING+ PROVIDE (__bss_end = .) ; }
} ${RELOCATING+ > data} } ${RELOCATING+ > data}
@ -232,31 +236,11 @@ SECTIONS
.stab.index 0 : { *(.stab.index) } .stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) } .stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) } .comment 0 : { *(.comment) }
.note.gnu.build-id : { *(.note.gnu.build-id) }
/* 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 EOF
. $srcdir/scripttempl/DWARF.sc
cat <<EOF
}
EOF