diff options
author | Devang Patel <dpatel@gcc.gnu.org> | 2002-12-12 14:23:45 -0800 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2002-12-12 14:23:45 -0800 |
commit | 61c85ff12df4cacdc2bc956e3bcc76f555659646 (patch) | |
tree | 6937b5a408099a952a7e7137cadd42afd0a91b8f /gcc | |
parent | 59578c84479efd12970b846199f1b94eb4e0acfe (diff) | |
download | gcc-61c85ff12df4cacdc2bc956e3bcc76f555659646.zip gcc-61c85ff12df4cacdc2bc956e3bcc76f555659646.tar.gz gcc-61c85ff12df4cacdc2bc956e3bcc76f555659646.tar.bz2 |
invoke.texi: Document Darwin linker options...
gcc
*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.
From-SVN: r60081
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/invoke.texi | 35 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-ld-1.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-ld-2.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-ld-3.c | 12 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-ld-4.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-ld-5.c | 11 |
6 files changed, 81 insertions, 10 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 10e8351..c6b21cc 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 index 0000000..6076157 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-1.c @@ -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 index 0000000..33a9c86 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-2.c @@ -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 index 0000000..e3efaca --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-3.c @@ -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 index 0000000..35d1be4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-4.c @@ -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 index 0000000..e32f1d9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-5.c @@ -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; +} + |