I have done a s imple experiment with trying binutils on the a gt.m binary

I would like to work on getting objtools to support these binaries,
and the objdump works, but the linker fails.
Attached is a mini program that just calls some internal routine and
the object file produced by it.

GTM compiles the source code to obj files and loads them into memory,
http://tinco.pair.com/bhaskar/gtm/doc/books/pg/OpenVMS_manual/zlinking_ch3.html


 g++ serenji.o
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
0 has invalid symbol index 11
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
1 has invalid symbol index 12
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
2 has invalid symbol index 2
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
3 has invalid symbol index 2
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
4 has invalid symbol index 11
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
5 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
6 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
7 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
8 has invalid symbol index 2
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
9 has invalid symbol index 2
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
10 has invalid symbol index 12
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
11 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
12 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
13 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
14 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
15 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
16 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
17 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
18 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
19 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
20 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
21 has invalid symbol index 13
/usr/bin/ld.bfd.real:
/usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation
22 has invalid symbol index 21
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/crt1.o: In
function `_start':
(.text+0x18): undefined reference to `main'
serenji.o:serenji.o:(.text+0x67): undefined reference to `_Serenji.SHELL'
serenji.o:serenji.o:(.text+0x6c): undefined reference to `_Serenji'
/usr/bin/ld.bfd.real: BFD (GNU Binutils for Ubuntu) 2.21.53.20110810
internal error, aborting at ../../bfd/reloc.c line 6281 in
bfd_generic_get_relocated_section_contents

/usr/bin/ld.bfd.real: Please report this bug.

collect2: ld returned 1 exit status

-- 
James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org

Attachment: serenji.o
Description: application/object

serenji	; Wrapper for Serenji shell
	d SHELL^%Serenji("@gj")
	q
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to