Opened 4 years ago

Closed 4 years ago

#12445 closed enhancement (fixed)

gcc 2, gcc 4: Correct LINK_SPEC

Reported by: simonsouth Owned by: korli
Priority: normal Milestone: Unscheduled
Component: System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

The attached patch fixes a few issues I've recognized with my recent changes to LINK_SPEC in gcc 2 and 4 (see #12430 and #12439).

With the patch applied, the two compilers will

  • Set appropriate dynamic-link options for any type of dynamically linked executable, not only position-independent ones;
  • Not omit these options if -pie is specified by the user; and
  • Recognize the -static option.

Additionally I've re-added a hyphen that was missing from --no-undefined.

Attachments (1)

0001-gcc2-gcc4-Correct-LINK_SPEC.patch (5.9 KB) - added by simonsouth 4 years ago.
gcc2, gcc4: Correct LINK_SPEC

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by simonsouth

gcc2, gcc4: Correct LINK_SPEC

comment:1 Changed 4 years ago by simonsouth

Has a Patch: set

comment:2 Changed 4 years ago by pulkomandy

Owner: changed from nobody to korli
Status: newassigned

comment:3 Changed 4 years ago by korli

Resolution: fixed
Status: assignedclosed

Applied in btrev43112. Thanks!

Note: See TracTickets for help on using tickets.