Re: sim bug

2011-08-11 Thread Nick Clifton

Hi Mike,


I hope this is the right place for sim bugs.


It isn't. :-(


If not, let me know, gdb would be my next guess.


Correct. :-)


I found a nasty sim bug:


When you report the bug it might be worthwhile using the bugzilla system:

http://sourceware.org/bugzilla/

An example to demonstrate the problem would also be helpful.

Cheers
  Nick

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


[Bug gas/13081] New: Assertion fail /bfd/elf.c:6668; internal error, aborting...

2011-08-11 Thread adriafarres at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13081

 Bug #: 13081
   Summary: Assertion fail /bfd/elf.c:6668; internal error,
aborting...
   Product: binutils
   Version: 2.21
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sources.redhat.com
ReportedBy: adriafar...@gmail.com
Classification: Unclassified


The full message I am receiving is:

-
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail
../../bfd/elf.c:6668
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 internal error, aborting at
../../bfd/elfcode.h line 228 in bfd_elf32_swap_symbol_out

as: Please report this bug.
-
Okay. First of all, I am sure I am writting the syntaxis bad, so actually it is
not exactly a bug. I am learning assembly and, trying getting the adress, I got
was I have shown you.

The code I used its the following:

.section .data
etiqueta:
.int 7, 14, 21, 28, 35, 42, 39, 56, 63, 70
.section .text
.globl _start
_start:
movl $etiqueta, %eax
movl 4(%eax), %ebx
movl (%eax)+4, %ebx #As you can see, this is not correct. I was just
trying.

Regards!

PS: By the way,having an address in the %eax reg, how can I get the adress
situated X bytes to the right/left?

-- 
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.

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


[Bug ld/13082] New: Invalid R_X86_64_64 relocation for x32

2011-08-11 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13082

 Bug #: 13082
   Summary: Invalid R_X86_64_64 relocation for x32
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: hjl.to...@gmail.com
Classification: Unclassified


[hjl@gnu-6 pr-y]$ cat x.s
.text
.globl main
main:
lea.Ljmp(%rip), %rax
jmp*(%rax)
.section.data.rel.ro.local,"aw",@progbits
.align8, 0x90
.Ljmp:
.quad main
[hjl@gnu-6 pr-y]$ make X32=1
as --x32 -o x.o x.s
./ld -shared -m elf32_x86_64 -o x.so x.o
./ld -pie -m elf32_x86_64 -o x.pie x.o
./ld: warning: cannot find entry symbol _start; defaulting to 0184
./ld -m elf32_x86_64 -o x x.o
./ld: warning: cannot find entry symbol _start; defaulting to 00400074
readelf -r x

There are no relocations in this file.
readelf -r x.pie

Relocation section '.rela.dyn' at offset 0x178 contains 1 entries:
 Offset InfoTypeSym.Value  Sym. Name + Addend
00200190  0101 R_X86_64_64   00d4   .interp + 184
readelf -r x.so

Relocation section '.rela.dyn' at offset 0x140 contains 1 entries:
 Offset InfoTypeSym.Value  Sym. Name + Addend
00200158  0301 R_X86_64_64   014c   main + 0
[hjl@gnu-6 pr-y]$ 
[hjl@gnu-6 pr-x]$ make clean
rm -f a.out *.o *.so
[hjl@gnu-6 pr-x]$ cat x.s
.text
.globl main
main:
lea.Ljmp(%rip), %rax
jmp*(%rax)
.L1:
nop
.section.data.rel.ro.local,"aw",@progbits
.align8, 0x90
.Ljmp:
.quad .L1
[hjl@gnu-6 pr-x]$ make X32=yes
as --x32 -o x.o x.s
./ld -shared -m elf32_x86_64 -o x.so x.o
./ld -pie -m elf32_x86_64 -o x.pie x.o
./ld: warning: cannot find entry symbol _start; defaulting to 0184
./ld -m elf32_x86_64 -o x x.o
./ld: warning: cannot find entry symbol _start; defaulting to 00400074
readelf -r x

There are no relocations in this file.
readelf -r x.pie

Relocation section '.rela.dyn' at offset 0x178 contains 1 entries:
 Offset InfoTypeSym.Value  Sym. Name + Addend
00200190  0101 R_X86_64_64   00d4   .interp + 18d
readelf -r x.so

Relocation section '.rela.dyn' at offset 0x140 contains 1 entries:
 Offset InfoTypeSym.Value  Sym. Name + Addend
00200158  0101 R_X86_64_64   014c   .text + 155
[hjl@gnu-6 pr-x]$

-- 
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.

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