darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
authorDevang Patel <dpatel@apple.com>
Wed, 10 Sep 2003 00:43:38 +0000 (17:43 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Wed, 10 Sep 2003 00:43:38 +0000 (17:43 -0700)
gcc
        * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
        * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
testsuite
        * gcc.dg/darwin-ld-6.c: New test.

From-SVN: r71259

gcc/ChangeLog
gcc/config/darwin.h
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/darwin-ld-6.c [new file with mode: 0644]

index d5b7bb66888e6fb38ff4c8d8665536de3487f98a..358ee4eb3241943e2027dbd887aaabf49174f50a 100644 (file)
@@ -1,3 +1,9 @@
+
+2003-09-09  Devang Patel  <dpatel@apple.com>
+
+       * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
+       * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
+       
 2003-09-09  Eric Christopher  <echristo@redhat.com>
 
        * configure.in: Change usage of 'head' to 'sed 1q'.
index e0aeb7b21527a16e2488c5d1137a06e81c6bffd0..528140d0f6ed9808768106b11b1f85435d0319d7 100644 (file)
@@ -246,7 +246,7 @@ Boston, MA 02111-1307, USA.  */
    %{Zmulti_module:-multi_module} %{Zsingle_module:-single_module} \
    %{Zmultiply_defined*:-multiply_defined %*} \
    %{Zmultiplydefinedunused*:-multiply_defined_unused %*} \
-   %{prebind} %{noprebind} %{prebind_all_twolevel_modules} \
+   %{prebind} %{noprebind} %{nofixprebinding} %{prebind_all_twolevel_modules} \
    %{read_only_relocs} \
    %{sectcreate*} %{sectorder*} %{seg1addr*} %{segprot*} %{seg_addr_table*} \
    %{Zseg_addr_table_filename*:-seg_addr_table_filename %*} \
index db31657dea97209566c2b86030f564f96cb52ce3..e1743660b8712a85c0b33cb60a9a7d7f1401d1b0 100644 (file)
@@ -447,7 +447,7 @@ in the following sections.
 -force_flat_namespace  -headerpad_max_install_names @gol
 -image_base  -init  -install_name  -keep_private_externs @gol
 -multi_module  -multiply_defined  -multiply_defined_unused @gol
--noall_load  -nomultidefs  -noprebind  -noseglinkedit @gol
+-noall_load  -nofixprebinding -nomultidefs  -noprebind  -noseglinkedit @gol
 -pagezero_size  -prebind  -prebind_all_twolevel_modules @gol
 -private_bundle  -read_only_relocs  -sectalign @gol
 -sectobjectsymbols  -whyload  -seg1addr @gol
@@ -7668,6 +7668,7 @@ output file being linked. See man ld(1) for more information.
 @item -multiply_defined      
 @item -multiply_defined_unused      
 @item -noall_load  
+@item -nofixprebinding
 @item -nomultidefs
 @item -noprebind     
 @item -noseglinkedit
@@ -7724,6 +7725,7 @@ output file being linked. See man ld(1) for more information.
 @opindex multiply_defined
 @opindex multiply_defined_unused   
 @opindex noall_load  
+@opindex nofixprebinding
 @opindex nomultidefs   
 @opindex noprebind
 @opindex noseglinkedit      
index 2745abe955af909023639db3c72c8f98c666b87d..05cf7b3a99c6081b8c2e1bd7e815b17740c34094 100644 (file)
@@ -1,3 +1,8 @@
+
+2003-09-09  Devang Patel  <dpatel@apple.com>
+
+       * gcc.dg/darwin-ld-6.c: New test.
+       
 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.dg/torture/builtin-explog-1.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-6.c b/gcc/testsuite/gcc.dg/darwin-ld-6.c
new file mode 100644 (file)
index 0000000..e3985ea
--- /dev/null
@@ -0,0 +1,11 @@
+/* Test Darwin linker option -nofixprebinding.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-nofixprebinding" } */
+/* { dg-do link { target *-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+