This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

RE: newlib does not pick up the right cross-compiling gcc


I don't see -g in either of the given compiler lines.

-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Josef Wolf
Sent: Monday, February 08, 2010 7:49 AM
To: newlib@sourceware.org
Subject: Re: newlib does not pick up the right cross-compiling gcc

...

One more problem: although I compile/link with -g, objcopy tells me that
no
debugging information is available:

 m68k-unknown-elf-gcc -ansi -pedantic -Wall -Wcast-align
-Wstrict-prototypes \
    -Wmissing-prototypes -std=c89 -O2 -m68332 -msoft-float -c -o hello.o
hello.c
 m68k-unknown-elf-gcc -nostartfiles -Wl,--cref
-Wl,-Ttext=0,--entry=entry \
    -Wl,--oformat,elf32-m68k -Wl,--cref,-Map,hello.map \
    -Wl,-T,ldscript -ansi -pedantic -Wall -Wcast-align \
    -Wstrict-prototypes -Wmissing-prototypes -std=c89   -O2  -m68332 \
    -o hello.elf hello.o -lc
 m68k-unknown-elf-objcopy -O ieee --debugging hello.elf hello.ieee
 m68k-unknown-elf-objcopy: hello.elf: no recognized debugging
information


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