Opened 3 years ago

Closed 3 years ago

#9336 closed bug (fixed)

binutils gold linker detection does not work when called via gcc and selected by commandline parameters

Reported by: slomo Owned by:
Priority: normal Milestone: 7.8.4
Component: Driver Version: 7.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: #8976 Differential Rev(s):
Wiki Page:

Description

The binutils gold detection does not work if it is called via gcc and only selected via commandline parameters (i.e. -fuse-ld=gold). Reason is that the "linker" (actually compiler) is called without its commandline parameters.

Attached patch fixes that.

Attachments (2)

gold-detection.diff (1.2 KB) - added by slomo 3 years ago.
0002-Fix-detection-of-GNU-gold-linker-if-invoked-via-gcc-.patch (1.8 KB) - added by slomo 3 years ago.

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by slomo

Attachment: gold-detection.diff added

comment:1 Changed 3 years ago by thomie

Component: CompilerDriver
Status: newpatch

comment:2 Changed 3 years ago by Austin Seipp <austin@…>

In e7b414a3cc0e27049f2608f5e0a00c47146cc46d/ghc:

Fix detection of GNU gold linker if invoked via gcc with parameters

Previously the linker was called without any commandline parameters to
detect whether bfd or gold is used. However the -fuse-ld parameter can
be used to switch between gold and bfd and should be taken into account
here.

Trac #9336

Signed-off-by: Austin Seipp <austin@well-typed.com>

comment:3 Changed 3 years ago by thoughtpolice

Milestone: 7.10.1
Resolution: fixed
Status: patchclosed

Merged, thanks!

comment:4 Changed 3 years ago by nomeata

Milestone: 7.10.17.8.4
Status: closedmerge

This patch is required to get 7.8.4 compile on arm in Debian; I hope this makes this eligible for merging into 7.8.

comment:5 Changed 3 years ago by thoughtpolice

Status: mergeclosed

Merged to 7.8.4.

Note: See TracTickets for help on using tickets.