[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 --- Comment #7 from David Howells --- Any further thoughts on this? -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 --- Comment #1 from David Howells --- The binutils was built from the 2.24 tarball plus a patch bringing it up to git release cab6c3ee9785f072a373afe31253df0451db93cf. Build configuration: + LDFLAGS='-Wl,-z,relro ' + ../binutils-2.24/configure \ --disable-dependency-tracking \ --disable-silent-rules \ --enable-checking \ --build=x86_64-redhat-linux-gnu \ --host=x86_64-redhat-linux-gnu \ --target=sh64-linux-elf \ --program-prefix=sh64-linux-gnu- \ --disable-shared \ --disable-install_libbfd \ --with-sysroot=/usr/sh64-linux-gnu/sys-root \ --enable-64-bit-bfd (I've removed the flags that set the various installation paths and the bug url) -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 Kaz Kojima changed: What|Removed |Added CC||kkojima at rr dot iij4u.or.jp --- Comment #2 from Kaz Kojima --- > As can be seen, the assembler's output is flagged 0xa (sh5), but the linker's > > output is flagged 0x0. Note that adding -belf64-sh64l to the ld command > line > doesn't help. Does sh64-linux-gnu-ld -EL -mshlelf64 -r -o foo.o --whole-archive wibble.o help? -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 --- Comment #3 from David Howells --- Using --whole-archive seems to work. + sh64-linux-gnu-ar rcsD wibble.o hello.o + sh64-linux-gnu-ld -EL -mshlelf64 --whole-archive -r -o foo.o wibble.o + sh64-linux-gnu-readelf -h foo.o + grep Flags Flags: 0xa, sh5 + sh64-linux-gnu-ld -EL -mshlelf64 -r -o bar.o foo.o + sh64-linux-gnu-readelf -h bar.o + grep Flags Flags: 0xa, sh5 -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #4 from Nick Clifton --- Created attachment 7751 --> https://sourceware.org/bugzilla/attachment.cgi?id=7751&action=edit Set SH5 flag in ELF header The uploaded patch fixes the problem, but I am not yet convinced that it is the correct solution. -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 --- Comment #5 from Kaz Kojima --- I've tried operations in #c0 on arm-eabi toolchain and the result looks similar with sh64: echo 'int hello(int i) {return i + 42;}' | ../build/gcc/cc1 -o hello.s - ../build/gas/as-new -o hello.o hello.s ../build/binutils/readelf -h hello.o | grep Flags Flags: 0x500, Version5 EABI ../build/binutils/ar rcs wibble.o hello.o ../build/ld/ld-new -r -o foo.o wibble.o ./build/binutils/readelf -h foo.o | grep Flags Flags: 0x0 It seems that 'ld -r -o foo.o some_archive.a' makes a null foo.o object which has null flags. It looks a plausible behavior. -- 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
[Bug ld/17288] sh64 incremental link does not set flags in ELF header
https://sourceware.org/bugzilla/show_bug.cgi?id=17288 --- Comment #6 from David Howells --- Should the linker invent a new e_flags based on the -b and -m flags it has been given and reject any contributory object file that has different flags? -- 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