This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos 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]

Synth Link problem on Debian, gcc 2.95.4


Hi Folks

I've a linker problem with eCos trunk, on Debian:

gcc -c -I/export/home/lunn/ecos-work-linux/install/include
-I/export/home/lunn/anoncvs-home/packages/net/ns/dns/current
-I/export/home/lunn/anoncvs-home/packages/net/ns/dns/current/src
-I/export/home/lunn/anoncvs-home/packages/net/ns/dns/current/tests
-I. -I/export/home/lunn/anoncvs-home/packages/net/ns/dns/current/tests/
-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions -fvtable-gc -finit-priority -D_KERNEL
-D__ECOS -Wp,-MD,tests/dns2.tmp -o tests/dns2.o
/export/home/lunn/anoncvs-home/packages/net/ns/dns/current/tests/dns2.c
gcc -g -nostdlib -Wl,--gc-sections -Wl,-static
-L/export/home/lunn/ecos-work-linux/install/lib -Ttarget.ld -o
/export/home/lunn/ecos-work-linux/install/tests/net/ns/dns/current/tests/dns2
tests/dns2.o /usr/bin/ld: warning: no memory region specified for
section
`.rel.ecos.table._Net_inits.data.0x88000001domain_routecyg_net_add_domain'
/usr/bin/ld: warning: no memory region specified for section
`.rel.ecos.table._Net_inits.data.0x88000001domain_routecyg_net_add_domain'

lunn at cobra:~/lhome/ecos-work-linux$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
lunn at cobra:~/lhome/ecos-work-linux$ ld -v
GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux

The target.ld does not have a section rel.ecos.table, but does appear
to have data.ecos.table:

    .data   0x2000000  :      { __ram_data_start = ABSOLUTE(.); *(.data*) *(.gnu.linkonce.d.*) _GOT1_START_ = ABSOLUTE
(.); *(.got1) _GOT1_END_ = ABSOLUTE(.); . = ALIGN(8); __CTOR_LIST__ = ABSOLUTE(.); KEEP(*(SORT(.ctors*))) __CTOR_END__
 = ABSOLUTE(.); __DTOR_LIST__ = ABSOLUTE(.); KEEP(*(SORT(.dtors*))) __DTOR_END__ = ABSOLUTE(.); . = ALIGN(32); KEEP(*(
 SORT (.ecos.table.*))); _GOT2_START_ = ABSOLUTE(.); *(.got2) _GOT2_END_ = ABSOLUTE(.); _GOT_START_ = ABSOLUTE(.); _GL
OBAL_OFFSET_TABLE_ = ABSOLUTE(. + 32768); _SDA_BASE_ = ABSOLUTE(.); *(.got.plt) *(.got) _GOT_END_ = ABSOLUTE(.);  *(.d
ynamic) _SDATA_START_ = ABSOLUTE(.); *(.sdata*) *(.gnu.linkonce.s.*) } >  ram  __rom_data_start = LOADADDR(.data); __r
am_data_end = .; PROVIDE(__ram_data_end = .); _edata = .; PROVIDE (edata = .); 

     Andrew            


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