[Bug binutils/6449] objdump -S and DOS-style line-endings

2008-04-24 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-04-24 12:57 --- There are so many #ifndef O_BINARY #ifdef _O_BINARY #define O_BINARY _O_BINARY #define setmode _setmode #else #define O_BINARY 0 #endif #endif in binutils sources. It should go into sysdep.h. --

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-04-24 13:00 --- Why does it limit to PIE? If a symbol in shared library is resolved locally, will we run into the same problem? -- What|Removed |Added ---

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread jakub at redhat dot com
--- Additional Comments From jakub at redhat dot com 2008-04-24 13:11 --- The important thing is that executables and PIEs are always the first in the symbol search scope, so the linker can compute the offsets within the TLS block at runtime. For shared libraries you can't do that, as y

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-04-24 13:25 --- (In reply to comment #4) > The important thing is that executables and PIEs are always the first in the > symbol search scope, so the linker can compute the offsets within the TLS > block > at runtime. For

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-04-24 13:31 --- Will this patch --- elf64-x86-64.c.pie 2008-04-24 06:05:36.0 -0700 +++ elf64-x86-64.c 2008-04-24 06:29:08.0 -0700 @@ -1050,7 +1050,7 @@ elf64_x86_64_check_relocs (bfd *abfd, st

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread jakub at redhat dot com
--- Additional Comments From jakub at redhat dot com 2008-04-24 13:46 --- That's certainly not enough, see the testcase I've provided. There are various relocations: 0003 000b0016 R_X86_64_GOTTPOFF 0008 c + fffc 000c 000

[Bug ld/6443] -pie issues with TLS relocations

2008-04-24 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2008-04-24 13:56 --- Subject: Re: -pie issues with TLS relocations On Thu, Apr 24, 2008 at 6:46 AM, jakub at redhat dot com <[EMAIL PROTECTED]> wrote: > > --- Additional Comments From jakub at redhat dot com 2008-04-24 1

no support for undefined weak 16-bit coff symbols

2008-04-24 Thread Jay Foad
I configured binutils 2.18 for z80-unknown-coff and tried this: $ cat a.s .weak foo call foo $ objdir-z80/gas/as-new -o a.o a.s $ objdir-z80/binutils/objdump -tdr a.o a.o: file format coff-z80 SYMBOL TABLE: [ 0](sec -2)(fl 0x00)(ty 0)(scl 103) (nx 1) 0x fake File [ 2](sec 1)(fl

[Bug binutils/6449] objdump -S and DOS-style line-endings

2008-04-24 Thread eric dot weddington at atmel dot com
-- What|Removed |Added CC||eric dot weddington at atmel ||dot com http://sourceware.org/bu