bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22199] New: ld segfault with -static and -Map


From: valere.monseur at ymail dot com
Subject: [Bug binutils/22199] New: ld segfault with -static and -Map
Date: Mon, 25 Sep 2017 07:01:57 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22199

            Bug ID: 22199
           Summary: ld segfault with -static and -Map
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: valere.monseur at ymail dot com
  Target Milestone: ---

Created attachment 10468
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10468&action=edit
verbose output of ld

OS: Linux 4.12.13-1-ARCH x86_64 (archlinux)

Description: ld segfault when compiling with both -static and -Map options.
The reported error is:

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

I have the same result with binutils 2.29 (from my standard distribution
repository) and 2.29.1 (built myself).

The gcc version is 7.2.0
The glibc version is 2.26

I've tried on another machine (same architecture) and get the same result.

Steps 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

I've attached the verbose output of the linker created like this:
gcc -static -Wl,--verbose -Wl,-Map,hello.map hello.c &> ./verbose.txt

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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