bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19572] New: -Ttext-segment accepts out of range value


From: hjl.tools at gmail dot com
Subject: [Bug ld/19572] New: -Ttext-segment accepts out of range value
Date: Fri, 05 Feb 2016 13:30:27 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19572

            Bug ID: 19572
           Summary: -Ttext-segment accepts out of range value
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

address@hidden pr19567]$ cat x.S
    .globl _start
_start:
#ifdef __x86_64__
    mov $_start,%rax
    mov _start,%rax
#else
    mov $_start,%eax
    mov _start,%eax
#endif
address@hidden pr19567]$ make LD=ld
gcc -m32 -c -O2 -ffunction-sections -fPIC -o x.o x.S
ld -Ttext-segment 0xffffffff80000000 -m elf_i386 -o x x.o
objdump -dw x

x:     file format elf32-i386


Disassembly of section .text:

80000054 <_start>:
80000054:       b8 54 00 00 80          mov    $0x80000054,%eax
80000059:       a1 54 00 00 80          mov    0x80000054,%eax
address@hidden pr19567]$ 

Ld shouldn't accept -Ttext-segment 0xffffffff80000000 for 32-bit ELF.

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