[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/3197] New: ld --hash-style=gnu crashes
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/3197] New: ld --hash-style=gnu crashes |
Date: |
12 Sep 2006 21:20:14 -0000 |
address@hidden hash]$ cat x.c
void
foo (void)
{
}
address@hidden hash]$ make
cc -fPIC -c -o x.o x.c
./ld -shared --hash-style=gnu -o x x.o
make: *** [x] Floating point exception
make: *** Deleting file `x'
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /export/home/hjl/bugs/binutils/hash/ld -shared
--hash-style=gnu -o x x.o
Program received signal SIGFPE, Arithmetic exception.
0x08091da7 in elf_link_output_extsym (h=0x9c95400, data=0xbfe70870)
at /net/gnu-13/export/gnu/src/binutils-import/binutils/bfd/elflink.c:7078
7078 bucket = h->u.elf_hash_value % bucketcount;
(gdb)
The problem is that bucketcount is set when --hash-style=gnu is used. I will fix
it with a testcase.
--
Summary: ld --hash-style=gnu crashes
Product: binutils
Version: 2.18 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl at lucon dot org
CC: bug-binutils at gnu dot org,jakub at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3197
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/3197] New: ld --hash-style=gnu crashes,
hjl at lucon dot org <=