bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13730] New: Trying to link against gt.m object code


From: jamesmikedupont at googlemail dot com
Subject: [Bug binutils/13730] New: Trying to link against gt.m object code
Date: Thu, 23 Feb 2012 17:37:26 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13730

             Bug #: 13730
           Summary: Trying to link against gt.m object code
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 6238
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6238
object file from gt.m mumps

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.

It is not clear yet if gtm processes the binaries on its own before loading
them. It is not clear if this should work at all, but it would be nice to know.

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


Second Invocation including those two symbols as assembler code : 

address@hidden:~/experiments/fosm/pine02/scripts$ gcc serenji.o
testcode.s 
/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'
/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
address@hidden:~/experiments/fosm/pine02/scripts$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]