bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/17935] New: -z text should provide more info


From: hjl.tools at gmail dot com
Subject: [Bug ld/17935] New: -z text should provide more info
Date: Fri, 06 Feb 2015 18:25:10 +0000

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

            Bug ID: 17935
           Summary: -z text should provide more info
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com

ld should provide more info to help user identify the issue:

address@hidden textrel-2]$ cat foo.s
    .text
    .globl    foo
    .type    foo, @function
foo:
    ret
    .size    foo, .-foo
    .text
    .globl    _start
    .type    _start, @function
_start:
    .size    _start, .-_start
    .text
    .globl    bar
    .type    bar, @function
bar:
    movl    foo, %eax
    .size    bar, .-bar
address@hidden textrel-2]$ make
gcc -m32 -c  -o foo.o foo.s
./ld -m elf_i386 -z text -shared -o libfoo.so foo.o
./ld: read-only segment has dynamic relocations.
make: *** [libfoo.so] Error 1
address@hidden textrel-2]$

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