[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-bugs
Subject: [Bug ld/12815] New: Segmentation fault when using a global variable, a special linker script and em
From: "nils () script-solution ! de" <sourceware-bugzilla () sourceware ! org>
Date: 2011-05-27 8:45:03
Message-ID: bug-12815-70 () http ! sourceware ! org/bugzilla/
[Download RAW message or body]
http://sourceware.org/bugzilla/show_bug.cgi?id=12815
Summary: Segmentation fault when using a global variable, a
special linker script and emulation elf64mmix
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned@sources.redhat.com
ReportedBy: nils@script-solution.de
Host: Ubuntu on x86_64
Target: MMIX
Build: gcc-4.6.0 with binutils-2.21
I've build a cross-compiler with gcc-4.6.0 and binutils-2.21 for MMIX. There
seems to be a problem with the emulation elf64mmix.
To reproduce the problem, use the following c-file:
----
static unsigned int foo = 2;
int main(void) {
foo++;
return 0;
}
----
And the following linker-script:
----
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
. = 0x8000000000100000;
.text : AT(ADDR(.text) - 0x8000000000100000)
{
*(.text)
*(.data)
*(.rodata*)
*(COMMON*)
*(.bss*)
}
}
----
Compiling the c-file and linking it via:
$ mmix-elf-escape-gcc -o test.o -c test.c
$ mmix-elf-escape-ld -m elf64mmix -o test test.o -T ld.conf -nostdlib
produces:
Segmentation fault
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic