public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Newlib complains of undefined references to __bss_start__, __bss_end__ & __end__
@ 2012-08-07 14:00 Carlos de Sa
  2012-08-08  6:54 ` Per Arnold Blaasmo
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos de Sa @ 2012-08-07 14:00 UTC (permalink / raw)
  To: crossgcc

Hi,

I'm trying to build an arm-eabi toolchain using gcc 4.7.1, binutils
2.22 and newlib 1.20. This appears to build sucessfully. However when
testing a simple c program it complains -

crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__bss_start__'
crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__bss_end__'
crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__end__'
collect2: error: ld returned 1 exit status

From the above it appears that the generated toolchain in
~/x-tools/arm-unknown-eabi/ still has references to the build
directory in crosstool-ng-1.15.3/.build also also undefined linker
symbols?

any idea how to solve this?

TIA.

Regards
Carlos

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newlib complains of undefined references to __bss_start__, __bss_end__ & __end__
  2012-08-07 14:00 Newlib complains of undefined references to __bss_start__, __bss_end__ & __end__ Carlos de Sa
@ 2012-08-08  6:54 ` Per Arnold Blaasmo
  0 siblings, 0 replies; 2+ messages in thread
From: Per Arnold Blaasmo @ 2012-08-08  6:54 UTC (permalink / raw)
  To: Carlos de Sa; +Cc: crossgcc

On 07. aug. 2012 16:00, Carlos de Sa wrote:
> Hi,
> 
> I'm trying to build an arm-eabi toolchain using gcc 4.7.1, binutils
> 2.22 and newlib 1.20. This appears to build sucessfully. However when
> testing a simple c program it complains -
> 
> crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
> error: undefined reference to '__bss_start__'
> crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
> error: undefined reference to '__bss_end__'
> crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
> error: undefined reference to '__end__'
> collect2: error: ld returned 1 exit status
> 
>From the above it appears that the generated toolchain in
> ~/x-tools/arm-unknown-eabi/ still has references to the build
> directory in crosstool-ng-1.15.3/.build also also undefined linker
> symbols?
> 
> any idea how to solve this?
> 
> TIA.
> 
> Regards
> Carlos
> 

That seems to me to be a mismatch between the start up code in crt0.S
and the linker script you use.

From what I have understood when building an ARM toolchain you do not
use the start up code and linker scripts from newlib. You supply your
own in your project.

How does your .config file look like?

Regards
Per A.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 14:00 Newlib complains of undefined references to __bss_start__, __bss_end__ & __end__ Carlos de Sa
2012-08-08  6:54 ` Per Arnold Blaasmo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).