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]

sparc-sun-solaris2.5.1 bug with -ggdb3?


When trying to compile the attached trivial program with -ggdb3, using
Solaris ld, I get the attached string of linker errors.

-Daniel Eisenbud

-- 
Daniel Eisenbud
eisenbud@cs.swarthmore.edu
#include <stdio.h>
int main()
{
  printf ("Hello world\n");
  exit (0);
}
ld: warning: file /var/tmp/cca0025a1.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/cca0025a1.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/cca0025a1.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/cca0025a1.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/cca0025a1.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/cca0025a1.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/cca0025a1.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/cca0025a1.o
.text                               /var/tmp/cca0025a1.o
.debug_abbrev                       /var/tmp/cca0025a1.o
.debug_line                         /var/tmp/cca0025a1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

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