This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: IA64 linker is totally broken (Re: PATCH: ELF linker is broken)


On Mon, Jan 31, 2005 at 09:56:18PM -0800, H. J. Lu wrote:
> On Tue, Feb 01, 2005 at 10:38:25AM +1030, Alan Modra wrote:
> > On Mon, Jan 31, 2005 at 02:02:14PM -0800, H. J. Lu wrote:
> > > 	* elflink.c (_bfd_elf_link_create_dynamic_sections): Discard
> > > 	previous "_DYNAMIC" before creating the new one.
> > 
> > I'll be commiting a patch that looks similar to this one in a few
> > minutes.
> > 
> 
> Alan,
> 
> I have told you that your patch
> 
> http://sources.redhat.com/ml/binutils/2005-01/msg00529.html
> 
> doesn't work on ia64:
> 
> http://sources.redhat.com/ml/binutils/2005-01/msg00561.html
> 
> Now I got
> 
> FAIL: bootstrap
> FAIL: bootstrap with strip
> FAIL: bootstrap with --traditional-format
> FAIL: bootstrap with --no-keep-memory
> FAIL: bootstrap with --relax
> FAIL: vers23d
> FAIL: vers23
> FAIL: visibility (hidden_normal)
> FAIL: visibility (hidden_normal) (PIC main)
> FAIL: visibility (protected)
> FAIL: visibility (protected) (PIC main)
> FAIL: visibility (protected_undef_def)
> FAIL: visibility (protected_undef_def) (PIC main)
> FAIL: visibility (normal)
> FAIL: visibility (normal) (PIC main)
> 
> on Linux/ia64 with
> 
> http://sources.redhat.com/ml/binutils/2005-02/msg00005.html

I can't build anything on ia64 with the new linker. Without
--as-needed, I got

./ld  -dynamic-linker /lib/ld-linux-ia64.so.2 -o build/foo
/usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L. -Lstage1
-L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0
-L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0/../../..
build/genmddeps.o build/gensupport.o build/dummy-conditions.o
build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o
build/errors.o ../build-ia64-unknown-linux-gnu/libiberty/libiberty.a
-lgcc  -lgcc_s -lunwind  -lc -lgcc  -lgcc_s -lunwind  ./crtend.o
/usr/lib/crtn.o
./ld: BFD 2.15.94.0.3 20050201 assertion fail
/net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241
./ld: BFD 2.15.94.0.3 20050201 assertion fail
/net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241

Or I got

./ld  -dynamic-linker /lib/ld-linux-ia64.so.2 -o build/foo
/usr/lib/crt1.o /usr/lib/crti.o ./crtbegin.o -L. -Lstage1
-L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0
-L/usr/gcc-4.0/lib/gcc/ia64-unknown-linux-gnu/4.0.0/../../..
build/genmddeps.o build/gensupport.o build/dummy-conditions.o
build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o
build/errors.o ../build-ia64-unknown-linux-gnu/libiberty/libiberty.a
-lgcc --as-needed -lgcc_s -lunwind --no-as-needed -lc -lgcc --as-needed
-lgcc_s -lunwind --no-as-needed ./crtend.o /usr/lib/crtn.o
build/gensupport.o: In function `cmp_c_test':
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:1108: undefined
reference to `strcmp'
build/gensupport.o: In function `eq_struct_pred_data':
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:1196: undefined
reference to `strcmp'
build/gensupport.o: In function `init_md_reader_args_cb':
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:963: undefined
reference to `strrchr'
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:446: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:365: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:373: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:383: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:489: undefined
reference to `strcmp'
build/gensupport.o:/net/gnu/export/gnu/src/gcc/gcc/gcc/gensupport.c:491:
more undefined references to `strcmp' follow
build/read-rtl.o: In function `apply_macro_to_string':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:281: undefined reference
to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:282: undefined reference
to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:287: undefined reference
to `_obstack_newchunk'
build/read-rtl.o: In function `add_condition_to_string':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:407: undefined reference
to `asprintf'
build/read-rtl.o: In function `read_name':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:644: undefined reference
to `ungetc'
build/read-rtl.o: In function `read_escape':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:726: undefined reference
to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:722: undefined reference
to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:715: undefined reference
to `_obstack_newchunk'
build/read-rtl.o: In function `read_string':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:788: undefined reference
to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:767: undefined reference
to `_obstack_newchunk'
build/read-rtl.o:/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:791:
more undefined references to `_obstack_newchunk' follow
build/read-rtl.o: In function `def_name_eq_p':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:890: undefined reference
to `strcmp'
build/read-rtl.o: In function `read_mapping':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1030: undefined
reference to `ungetc'
build/read-rtl.o: In function `read_rtx_1':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1153: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1161: undefined
reference to `strcmp'
build/read-rtl.o: In function `read_constants':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:925: undefined reference
to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:935: undefined reference
to `strcmp'
build/read-rtl.o: In function `read_rtx_1':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:925: undefined reference
to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1166: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1171: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1176: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1181: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1067: undefined
reference to `strcmp'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1204: undefined
reference to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1223: undefined
reference to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1246: undefined
reference to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1248: undefined
reference to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1270: undefined
reference to `ungetc'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1303: undefined
reference to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1304: undefined
reference to `_obstack_newchunk'
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1306: undefined
reference to `_obstack_newchunk'
build/read-rtl.o: In function `read_rtx':
/net/gnu/export/gnu/src/gcc/gcc/gcc/read-rtl.c:1104: undefined
reference to `ungetc'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
: undefined reference to `__init_array_start'
./ld: BFD 2.15.94.0.3 20050201 assertion fail
/net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241
./ld: BFD 2.15.94.0.3 20050201 assertion fail
/net/gnu/export/linux/src/binutils/binutils/bfd/elf-strtab.c:241


H.J.


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