This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

can't create a Dwarf2 debug file


Hi All,

I've tried to create a Dwarf2 file on a Solaris machine ( uses Elf format ).
I've used the -ggdb flag which create Dwarf2 debug info by default on Elf machines,
as stated in http://www.cygnus.com/egcs/features-2.8.html
during the link I've ran into some problems of undefined symbols.
I'm including the command line and the errors messages I've received.
any idea how it should be linked ?

Thanks in advance
Yoram Shacham

yoramsh@msil.sps.mot.com
                                   ,,,
                                  (o o)
----- Begin Included Message -oOO--(_)--OOo------------------------------------

22)yoramsh> gcc -ggdb target.c -o target
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.text'
        from a non-allocatable section `.debug_line'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.debug_abbrev'
        from a non-allocatable section `.debug_info'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.text'
        from a non-allocatable section `.debug_info'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.debug_line'
        from a non-allocatable section `.debug_info'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.debug_info'
        from a non-allocatable section `.debug_pubnames'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.debug_info'
        from a non-allocatable section `.debug_aranges'
        cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca004Sy1.o: relocation against external symbol `.text'
        from a non-allocatable section `.debug_aranges'
        cannot be processed at runtime: relocation ignored
Undefined                       first referenced
 symbol                             in file
.debug_info                         /var/tmp/cca004Sy1.o
.text                               /var/tmp/cca004Sy1.o
.debug_abbrev                       /var/tmp/cca004Sy1.o
.debug_line                         /var/tmp/cca004Sy1.o
ld: fatal: Symbol referencing errors. No output written to target
collect2: ld returned 1 exit status
Exit 1




------ End Included Message ---------------------------------------------------


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