--- Additional Comments From amodra at bigpond dot net dot au 2009-11-23
21:05 ---
Your accept.ox is broken. It has a REL section with entsize of 12 which is the
size for a RELA section.
--
What|Removed |Added
The GNU ld linker requires the user to specify libraries after any object
files which use them. For example:
$ cat main.c
void sub();
main() {
sub();
}
$ gcc -c sub.c
$ ar rv libsub.a sub.o
ar: creating libsub.a
a - sub.o
$ gcc -L . -lsub main.c ### FAILS !!!
/tmp/cccN9Qxp.
--- Additional Comments From ben dot baron at sun dot com 2009-11-23 17:32
---
Files are now attached. Please let me know if I can provide other details.
--
What|Removed |Added
-
--- Additional Comments From ben dot baron at sun dot com 2009-11-23 17:30
---
Created an attachment (id=4410)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4410&action=view)
accept.ox - file under test - fails with "File format not recognized"
--
http://sourceware.org/bugz
--- Additional Comments From ben dot baron at sun dot com 2009-11-23 17:25
---
Created an attachment (id=4409)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4409&action=view)
cross-compiled version of objdump from 2.20 binutils
--
http://sourceware.org/bugzilla/show_bug.cgi
on
SunOS ttuff 5.10 Generic_13-08 sun4v sparc SUNW,Sun-Fire-T200
with binutils 2.20, cross-compiler version of binutils (--target=arm-elf) the
below file (which is verified to be linkable) gets:
/proj/vulture/wrk/baronbj/../tools/bin/arm-elf-objdump: accept.o: File format
not recognized
I
--- Additional Comments From schwab at linux-m68k dot org 2009-11-23 14:48
---
> a = 'ab\0b\0'
This is not a valid zero-terminated string.
--
What|Removed |Added
--- Additional Comments From nunoplopes at sapo dot pt 2009-11-23 14:40
---
(In reply to comment #1)
> The contents of "MS" sections must be zero-terminated strings.
which they are:
a = 'ab\0b\0'
b = 'b\0'
--
What|Removed |Added
-
--- Additional Comments From schwab at linux-m68k dot org 2009-11-23 12:19
---
The contents of "MS" sections must be zero-terminated strings.
--
What|Removed |Added
$ cat a.s
.file "a.c"
.type a,@object
.section.rodata.str1.1,"aMS",@progbits,1
.globl a
a:
.size a, 5 # note that size is 5!
.align 8
.byte 0x61
.byte 0x62
.zero 1
.type b,@object
.globl
--- Additional Comments From nickc at redhat dot com 2009-11-23 11:09
---
Hi Richard,
Doh! Bogus patch obsoleted.
I'll rework the patch as you suggested and upload it to the proper PR.
Cheers
Nick
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10961
--- You are receiv
--
What|Removed |Added
Attachment #4404 is|0 |1
obsolete||
http://sourceware.org/bugzilla/show_bug.cgi?id=10961
12 matches
Mail list logo