--- 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
--- 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
--- 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
--- 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
--- 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
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));
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
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)
--
What|Removed |Added
Version|2.20|2.21 (HEAD)
http://sourceware.org/bugzilla/show_bug.cgi?id=11791
--- You are receiving this mail because:
--- 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
--
What|Removed |Added
Summary|GAS ignores -fno-delayed- |GAS ignores -fno-delayed-
|branch for functions with |branch for functions with
11 matches
Mail list logo