bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/6844] Segmentation Fault using cross architecture ld command


From: jmorrison at printronix dot com
Subject: [Bug ld/6844] Segmentation Fault using cross architecture ld command
Date: 20 Aug 2008 22:26:25 -0000

------- Additional Comments From jmorrison at printronix dot com  2008-08-20 
22:26 -------
Reply to #10:

Item 1:  here is the updated linker script with the .eh_frame "clause" (near the
end).  I still get the
   no memory region specified for loadable section `.eh_frame'
error message.

STARTUP(vectors.o)
ENTRY(__exception_reset)

INPUT(extras.o)


GROUP(libtarget.a libgcc.a embedded.lib kerberos.lib )



MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0x1000000
}

SECTIONS
{
     
    .vectors   0  :      { . = . ; KEEP(*(.vectors)) } >  ram  
     __reserved_vsr_table   = 0x3000; . =  __reserved_vsr_table   + 0x200;
    .hwinfo 0x3200 : { . = . ; __hwinfo = .; *(.hwinfo) } > ram 
    .vecipds 0x3FFF : { . = . ; __vecipds = . ; *(.vecipds) ; BYTE(0) } > ram 
    .sram  0x4000  : { _sram_start = . ; *(SORT(.sram*)) ; _sram_end = . ; } > 
ram
    .text   ALIGN (0x4)  :      { _stext = .; *(.text*) *(.gnu.warning)
*(.gnu.linkonce*) *(.init) } >  ram  _etext = .;  PROVIDE (etext = .);    
    .fini   ALIGN (0x4)  :      { . = . ; *(.fini) } >  ram  
    .rodata1   ALIGN (0x8)  :      { . = . ; *(.rodata1*) } >  ram  
    .rodata   ALIGN (0x8)  :      { . = . ; *(.rodata*) } >  ram  
    .fixup   ALIGN (0x4)  :      { __FIXUP_START__ = ABSOLUTE(.); *(.fixup)
__FIXUP_END__ = ABSOLUTE(.);} >  ram      
    .eh_frame : { KEEP (*(.eh_frame)) } > ram
    .gcc_except_table   ALIGN (0x1)  :      { __EXCEPT_START__ = ABSOLUTE(.);
*(.gcc_except_table) __EXCEPT_END__ = ABSOLUTE(.);} >  ram  
    .data   ALIGN (0x8)  :      { __ram_data_start = ABSOLUTE(.); *(.data*)
__GOT1_START__ = ABSOLUTE(.); *(.got1) __GOT1_END__ = ABSOLUTE(.); . = ALIGN(8);
__CTOR_LIST__ = ABSOLUTE(.); KEEP(*(SORT(.ctors*))) __CTOR_END__ = ABSOLUTE(.);
__DTOR_LIST__ = ABSOLUTE(.); KEEP(*(SORT(.dtors*))) __DTOR_END__ = ABSOLUTE(.);
. = ALIGN(8); KEEP(*( SORT (.ecos.table.*))) ; . = ALIGN(4); *( .2ram.*) ;
__GOT2_START__ = ABSOLUTE(.); *(.got2) __GOT2_END__ = ABSOLUTE(.); __GOT_START =
ABSOLUTE(.); _GLOBAL_OFFSET_TABLE_ = ABSOLUTE(. + 32768); _SDA_BASE_ =
ABSOLUTE(.); *(.got.plt) *(.got) __GOT_END__ = ABSOLUTE(.);  *(.dynamic)
__SDATA_START__ = ABSOLUTE(.); *(.sdata) *(.sdata.*) __SDATA2_START__ =
ABSOLUTE(.); *(.sdata2*) } >  ram  __rom_data_start = LOADADDR(.data);
__ram_data_end = .; PROVIDE(__ram_data_end = .); _edata = .; PROVIDE (edata = 
.); 
    .sbss   ALIGN (0x4)  :      { __sbss_start = ABSOLUTE (.); __SBSS_START__ =
ABSOLUTE(.); *(.sbss.*) __SBSS_END__ = ABSOLUTE(.); __SBSSx_START__ =
ABSOLUTE(.); *(.sbss*) __SBSSx_END__ = ABSOLUTE(.); *(.scommon*) __sbss_end =
ABSOLUTE (.); } >  ram  
    .bss   ALIGN (0x10)  :      { __bss_start = ABSOLUTE (.); . = . ;
*(.dynbss*) *(.bss*) *(COMMON) __bss_end = ABSOLUTE (.); } >  ram  
    
    .eh_frame :  {*(.eh_frame)}
   
     __heap1   = ALIGN (0x8);
    . = ALIGN(4); _end = .; PROVIDE (end = .); 
}

hal_vsr_table = (0x0  + 0x3000) ;
hal_virtual_vector_table = ((0x0  + 0x3000)  + 0x200) ;

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6844

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]