This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix -seg_addr_table_filename on darwin
- From: Mike Stump <mrs at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Dec 2005 15:44:12 -0800
- Subject: Fix -seg_addr_table_filename on darwin
- References: <C8FBD2C6-B80A-42AB-8278-41B7147A338A@apple.com>
This fixes the handling of -seg_addr_table_filename on darwin so that
it works at all.
Bootstrapped on powerpc-apple-darwin8.3.0.
2005-12-20 Mike Stump <mrs@apple.com>
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the
ambiguity between -seg_addr_table and -seg_addr_table_filename.
(WORD_SWITCH_TAKES_ARG): Likewise.
(LINK_SPEC): Likewise.
Doing diffs in config/darwin.h.~1~:
--- config/darwin.h.~1~ 2005-12-20 12:49:55.000000000 -0800
+++ config/darwin.h 2005-12-20 14:15:53.000000000 -0800
@@ -123,7 +123,7 @@ Boston, MA 02110-1301, USA. */
{ "-segs_read_only_addr", "-Zsegs_read_only_addr" }, \
{ "-segs_read_write_addr", "-Zsegs_read_write_addr" }, \
{ "-seg_addr_table", "-Zseg_addr_table" }, \
- { "-seg_addr_table_filename", "-Zseg_addr_table_filename" }, \
+ { "-seg_addr_table_filename", "-Zfn_seg_addr_table_filename" }, \
{ "-filelist", "-Xlinker -filelist -Xlinker" }, \
{ "-framework", "-Xlinker -framework -Xlinker" }, \
{ "-flat_namespace", "-Zflat_namespace" }, \
@@ -167,7 +167,7 @@ Boston, MA 02110-1301, USA. */
!strcmp (STR, "Zsegs_read_only_addr") ? 1 : \
!strcmp (STR, "Zsegs_read_write_addr") ? 1 : \
!strcmp (STR, "Zseg_addr_table") ? 1 : \
- !strcmp (STR, "Zseg_addr_table_filename") ?1 :\
+ !strcmp (STR, "Zfn_seg_addr_table_filename") ? 1 :\
!strcmp (STR, "seg1addr") ? 1 : \
!strcmp (STR, "segprot") ? 3 : \
!strcmp (STR, "sub_library") ? 1 : \
@@ -272,7 +272,7 @@ Boston, MA 02110-1301, USA. */
%{Zsegs_read_only_addr*:-segs_read_only_addr %*} \
%{Zsegs_read_write_addr*:-segs_read_write_addr %*} \
%{Zseg_addr_table*: -seg_addr_table %*} \
- %{Zseg_addr_table_filename*:-seg_addr_table_filename %*} \
+ %{Zfn_seg_addr_table_filename*:-seg_addr_table_filename %*} \
%{sub_library*} %{sub_umbrella*} \
%{isysroot*:-syslibroot %*} \
%{twolevel_namespace} %{twolevel_namespace_hints} \
--------------