This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: undefined reference to `end'in function _sbrk


here is the  file  ldscripts/armaoutl.x:


OUTPUT_FORMAT("a.out-arm-little")
OUTPUT_ARCH(arm)
 SEARCH_DIR(/usr/local/arm-v4t-aout/lib);
SECTIONS
{
  .text   0x8000 :
  {
    CREATE_OBJECT_SYMBOLS
    __stext_ = .;
    *(.text)
    _etext = ALIGN(32768);
    __etext = ALIGN(32768);
  }
  .data ALIGN(32768) :
  {
    __sdata_ = .;
    *(.data)
    CONSTRUCTORS
    _edata  =  .;
    __edata  =  .;
  }
  .bss  SIZEOF(.data) + ADDR (.data) :
  {
    __bss_start = .;
   *(.bss)
   *(COMMON)
   _end = ALIGN(4) ;
   __end = ALIGN(4) ;
 }
}


...I can't see what's wrong
Marco Marcello


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]