Opened 5 years ago

Closed 5 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:
Platform: All


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 5 years ago.
gcc2, gcc4: Correct LINK_SPEC

Download all attachments as: .zip

Change History (4)

by simonsouth, 5 years ago

gcc2, gcc4: Correct LINK_SPEC

comment:1 by simonsouth, 5 years ago

patch: 01

comment:2 by pulkomandy, 5 years ago

Owner: changed from nobody to korli
Status: newassigned

comment:3 by korli, 5 years ago

Resolution: fixed
Status: assignedclosed

Applied in btrev43112. Thanks!

Note: See TracTickets for help on using tickets.