[Bug gas/3041] Bogus jump to weak symbol on m68k-unknown-netbsd

2006-09-09 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2006-09-09 08:50 
---
Hi Vincent,

  Boy I must have been asleep when I wrote that patch, it was completely bogus.
 Oh well, I have uploaded another one for you to try.  This time I have actually
tested it with the test case you supplied, so I think that it should work. 
Please let me know how you get on.

Cheers
  Nick


-- 
   What|Removed |Added

 Status|NEW |WAITING


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/3041] Bogus jump to weak symbol on m68k-unknown-netbsd

2006-09-09 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2006-09-09 08:52 
---
Created an attachment (id=1292)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1292&action=view)
When writing out a.out relocations, treat relocs against weak symbols as if
they were against externals


-- 
   What|Removed |Added

Attachment #1287 is|0   |1
   obsolete||


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/3041] Bogus jump to weak symbol on m68k-unknown-netbsd

2006-09-09 Thread vincent dot riviere at freesbee dot fr

--- Additional Comments From vincent dot riviere at freesbee dot fr  
2006-09-09 10:31 ---
A lot better this time !
But half-fixed.

$ as bug.s -o bug.o
$ objdump -d bug.o

bug.o: file format a.out-m68k-netbsd

Disassembly of section .text:

 :
   0:   4ef9  0010  jmp 10 
   6:   4e71nop

0008 :
   8:   4e71nop
...

We can see a strange value for the jmp (0x10), but it dosn't matter because...

$ objdump -r bug.o

bug.o: file format a.out-m68k-netbsd

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE  VALUE
0002 32mylabel

... the relocation is good !

Let's go ahead and link it :
$ ld bug.o -o bug
$ objdump -d bug

bug: file format a.out-m68k-netbsd

Disassembly of section .text:

2020 :
2020:   4ef9  2038  jmp 2038 <__etext+0xc>
2026:   4e71nop

2028 :
2028:   4e71nop
...

202c <__etext>:
...

Bad : The value of the jump should be 0x2028, but it is 0x2038

$ objdump -r bug

bug: file format a.out-m68k-netbsd

And there is no relocation.

Note that I obtain the same result when I link bug.o using ld 2.14.
So I thing there is still a problem with gas.

Nice work... just another effort and you'll get it !


-- 
   What|Removed |Added

 Status|WAITING |NEW


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/3168] compiling gas fails on IRIX 5.3 with SGI ido cc; bug in dw2gencfi.c

2006-09-09 Thread georg dot schwarz at freenet dot de

--- Additional Comments From georg dot schwarz at freenet dot de  
2006-09-09 13:29 ---
Tried the patch, but it does not have any visible effect, i.e. it does not solve
the problem. (and in fact I would not  understand how patching
gas/config/tc-mips.h could affect the problem described).

-- 
   What|Removed |Added

 Status|WAITING |NEW


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

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils