[Bug ld/11817] Linker crash due to compressed debug section change

2010-07-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-07-14 04:33 --- This patch: diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 6983a1c..b1985a0 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -436,17 +436,9 @@ read_and_uncompress_section (bfd * abfd, if (syms

[Bug ld/11817] Linker crash due to compressed debug section change

2010-07-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-07-14 03:31 --- This change: + if (syms) +{ + /* We want to relocate the data we've already read (and +decompressed), so we store a pointer to the data in +the bfd_section, and tell it that the co

[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-13 Thread jyasskin at gmail dot com
--- Additional Comments From jyasskin at gmail dot com 2010-07-14 03:25 --- FWIW, I've mailed a patch to fix this: http://gcc.gnu.org/PR42540 / http://gcc.gnu.org/ml/gcc- patches/2010-07/msg01116.html It's not perfect, but it does mention the method the user forgot to define. After th

[Bug ld/11817] Linker crash due to compressed debug section change

2010-07-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-07-14 01:01 --- A smaller testcase: [...@gnu-6 pr11817]$ cat foo.c typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; typedef long int int64_t; typedef unsigned char uint8_t; typedef unsigned shor

[Bug ld/11817] Linker crash due to compressed debug section change

2010-07-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-07-14 01:00 --- It is caused by compressed debug section change: http://sourceware.org/ml/binutils/2010-07/msg00030.html When linker report error, read_and_uncompress_section changed the size of .debug_str: (gdb) c Conti

[Bug gas/11818] New: MOVD (mov doubleword) into 64-bit register with zero extension incorrectly changed to load quadword

2010-07-13 Thread adam at consulting dot net dot nz
Consider this inline assembly compiled by GCC on x86-64 Linux with the small code model: #include typedef uint32_t u32x4_t __attribute__ ((vector_size (16))); void decode_and_jump(u32x4_t instructions) { void *ptr; asm("movd %[from], %[to]\n" : [to] "=r" (ptr) : [from] "x" (instructions));

[Bug ld/11817] New: Linker crash

2010-07-13 Thread hjl dot tools at gmail dot com
On Linux/x86-64, I got [...@gnu-6 tmp]$ cat p.c #include int main () { pthread_create(NULL, NULL, NULL, NULL); return 0; } [...@gnu-6 tmp]$ gcc p.c -g collect2: ld terminated with signal 11 [Segmentation fault] /tmp/cchrlmId.o: In function `main': /tmp/p.c:6: undefined reference to `pthread_cr

[Bug ld/11812] New: Unused .got.plt section generated by linker

2010-07-13 Thread hjl dot tools at gmail dot com
In this testcase, .got.plt section isn't needed: [...@gnu-6 gotplt-1]$ cat foo.c static int bar () { return 0x1234; } void * foo () { return &bar; } [...@gnu-6 gotplt-1]$ cat main.c extern void * foo (); extern void abort (); int main () { int (*bar) () = foo (); if (bar () != 0x1234)

[Bug ld/11791] Garbage collection for STT_GNU_IFUNC symbols

2010-07-13 Thread hjl dot tools at gmail dot com
-- What|Removed |Added Version|2.20|2.21 (HEAD) http://sourceware.org/bugzilla/show_bug.cgi?id=11791 --- You are receiving this mail because:

[Bug ld/11791] Garbage collection for STT_GNU_IFUNC symbols

2010-07-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-07-13 16:59 --- Subject: Bug 11791 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-07-13 16:59:14 Modified files: bfd: ChangeLog elf-ifunc.c elf32-i386.c

[Bug gas/11801] GAS ignores -fno-delayed-branch for functions with inline assembly

2010-07-13 Thread andyhhp at hotmail dot com
-- What|Removed |Added Summary|GAS ignores -fno-delayed- |GAS ignores -fno-delayed- |branch for functions with |branch for functions with