aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2003-09-09 17:43:38 -0700
committerDevang Patel <dpatel@gcc.gnu.org>2003-09-09 17:43:38 -0700
commite62f462e1093bc9ce729021bcef66e9636159568 (patch)
treee681df249288ed5a3e03f3c77866770e1212d568
parent6fe055ae4630dd4352ac7cdc5298b277d6493235 (diff)
downloadgcc-e62f462e1093bc9ce729021bcef66e9636159568.zip
gcc-e62f462e1093bc9ce729021bcef66e9636159568.tar.gz
gcc-e62f462e1093bc9ce729021bcef66e9636159568.tar.bz2
darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.h2
-rw-r--r--gcc/doc/invoke.texi4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/darwin-ld-6.c11
5 files changed, 26 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d5b7bb6..358ee4e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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'.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index e0aeb7b..528140d 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -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 %*} \
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index db31657..e174366 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2745abe..05cf7b3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..e3985ea
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/darwin-ld-6.c
@@ -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;
+}
+