|
From: | hjl.tools at gmail dot com |
Subject: | [Bug gold/17942] New: -z text should provide more info |
Date: | Sat, 07 Feb 2015 13:35:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17942 Bug ID: 17942 Summary: -z text should provide more info Product: binutils Version: 2.26 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold Assignee: ccoutant at google dot com Reporter: hjl.tools at gmail dot com CC: ian at airs dot com gold should provide more info to help user identify the issue: address@hidden pr17935]$ cat foo.s .text .globl foo foo: .byte 0 .globl bar bar: .dc.a foo address@hidden pr17935]$ make gcc -m32 -c -o foo.o foo.s ld.gold -m elf_i386 -z text -shared -o libfoo.so foo.o ld.gold: error: read-only segment has dynamic relocations Makefile:19: recipe for target 'libfoo.so' failed make: *** [libfoo.so] Error 1 ld issue a warning: address@hidden pr17935]$ ./ld -m elf_i386 -z text -shared -o libfoo.so foo.o ./ld: foo.o: warning: relocation against `foo' in readonly section `.text' ./ld: read-only segment has dynamic relocations. address@hidden pr17935]$ It is very useful to identify which input causes the error. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |