OSDN Git Service

gcc
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2002 22:23:45 +0000 (22:23 +0000)
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 2002 22:23:45 +0000 (22:23 +0000)
        *doc/invoke.texi: Document Darwin linker options, -bundle
        -bind_at_load, -all_load and -arch_errors_fatal

testsuite
        * gcc.dg/darwin-ld-1.c: New test.
        * gcc.dg/darwin-ld-2.c: New test.
        * gcc.dg/darwin-ld-3.c: New test.
        * gcc.dg/darwin-ld-4.c: New test.
        * gcc.dg/darwin-ld-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60081 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/doc/invoke.texi
gcc/testsuite/gcc.dg/darwin-ld-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-ld-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-ld-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-ld-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/darwin-ld-5.c [new file with mode: 0644]

index 10e8351..c6b21cc 100644 (file)
@@ -7255,13 +7255,33 @@ This option sets flags for both the preprocessor and linker.
 @cindex Darwin options
 @table @gcctabopt
 @item -all_load    
-@item -allowable_client  
-@item -arch    
+@opindex all_load   
+Loads all members of static archive libraries.
+See man ld(1) for more information.
+
 @item -arch_errors_fatal
-@item -arch_only
+@opindex arch_errors_fatal
+Cause the errors having to do with files that have the wron architecture
+to be fatal.
+
 @item -bind_at_load
+@opindex bind_at_load
+Causes the output file to be marked such that the dynamic linker will
+bind all undefined references when the file is loaded or launched.
+
 @item -bundle     
-@item -bundle_loader
+@opindex bundle
+Produce a Mach-o bundle format file.
+See man ld(1) for more information.
+
+@item -bundle_loader @var{executable}
+@opindex bundle_loader
+This specifies the @var{executable} that will be loading the build
+outout file being linked. See man ld(1) for more information.
+
+@item -allowable_client  @var{client_name}
+@item -arch_only
+
 @item -client_name       
 @item -compatibility_version
 @item -current_version    
@@ -7315,14 +7335,9 @@ This option sets flags for both the preprocessor and linker.
 @item -unexported_symbols_list
 @item -weak_reference_mismatches
 @item -whatsloaded  
-@opindex all_load   
+
 @opindex allowable_client
-@opindex arch
-@opindex arch_errors_fatal
 @opindex arch_only    
-@opindex bind_at_load
-@opindex bundle
-@opindex bundle_loader
 @opindex client_name
 @opindex compatibility_version
 @opindex current_version
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-1.c b/gcc/testsuite/gcc.dg/darwin-ld-1.c
new file mode 100644 (file)
index 0000000..6076157
--- /dev/null
@@ -0,0 +1,11 @@
+/* Test Darwin linker option -all_load.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-all_load" } */
+/* { dg-do link { target *-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-2.c b/gcc/testsuite/gcc.dg/darwin-ld-2.c
new file mode 100644 (file)
index 0000000..33a9c86
--- /dev/null
@@ -0,0 +1,11 @@
+/* Test Darwin linker option -bind_at_load.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-bind_at_load" } */
+/* { dg-do link { target powerpc-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-3.c b/gcc/testsuite/gcc.dg/darwin-ld-3.c
new file mode 100644 (file)
index 0000000..e3efaca
--- /dev/null
@@ -0,0 +1,12 @@
+
+/* Test Darwin linker option -arch_errors_fatal.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-arch_errors_fatal" } */
+/* { dg-do link { target *-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-4.c b/gcc/testsuite/gcc.dg/darwin-ld-4.c
new file mode 100644 (file)
index 0000000..35d1be4
--- /dev/null
@@ -0,0 +1,11 @@
+/* Test Darwin linker option -bundle.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-bundle" } */
+/* { dg-do link { target powerpc-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/darwin-ld-5.c b/gcc/testsuite/gcc.dg/darwin-ld-5.c
new file mode 100644 (file)
index 0000000..e32f1d9
--- /dev/null
@@ -0,0 +1,11 @@
+/* Test Darwin linker option -bundle_loader.  */
+/* Developed by Devang Patel <dpatel@apple.com>.  */
+
+/* { dg-options "-bundle -bundle_loader foo" } */
+/* { dg-do link { target *-*-darwin* } } */
+
+int main()
+{
+  return 0;
+}
+