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:

[hjl@gnu-6 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
[hjl@gnu-6 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
[hjl@gnu-6 textrel-2]$

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

Reply via email to