[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13048] New: Invalid address for x32
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/13048] New: Invalid address for x32 |
Date: |
Sun, 31 Jul 2011 21:23:53 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13048
Summary: Invalid address for x32
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
address@hidden tmp]$ cat ilp32-6.s
.globl _start
_start:
mov $_start,%rax
mov _start,%rax
address@hidden tmp]$ as --x32 -o ilp32-6.o ilp32-6.s
address@hidden tmp]$ ld -m elf32_x86_64 -Ttext-segment 0x80000000 ilp32-6.o
address@hidden tmp]$ objdump -dw a.out
a.out: file format elf32-x86-64
Disassembly of section .text:
80000054 <_start>:
80000054: 48 c7 c0 54 00 00 80 mov $0xffffffff80000054,%rax
8000005b: 48 8b 04 25 54 00 00 80 mov 0xffffffff80000054,%rax
address@hidden tmp]$
Linker should detect address overflow.
--
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/13048] New: Invalid address for x32,
hjl.tools at gmail dot com <=