bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld segfault with -static and -Map in 2.29.1


From: Valère Monseur
Subject: ld segfault with -static and -Map in 2.29.1
Date: Mon, 25 Sep 2017 00:24:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Error:

collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core 
dumped
compilation terminated.

Version: binutils 2.29.1

How to reproduce:

1. create source file: hello.c

#include <stdio.h>

int main (int argc, char **argv)
{
    printf("hello world!");
}

2. compile with these options:

gcc -Wl,-Map,hello.map hello.c          => works ok
gcc -static hello.c                     => works ok
gcc -static -Wl,-Map,hello.map hello.c  => segfault

.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]