From: Devang Patel Date: Thu, 12 Dec 2002 22:23:45 +0000 (-0800) Subject: invoke.texi: Document Darwin linker options... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61c85ff12df4cacdc2bc956e3bcc76f555659646;p=gcc.git 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 --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 10e83516a0e..c6b21cc673f 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 00000000000..60761577e01 --- /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 . */ + +/* { 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 00000000000..33a9c86d9cd --- /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 . */ + +/* { 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 00000000000..e3efacaba24 --- /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 . */ + +/* { 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 00000000000..35d1be41659 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-ld-4.c @@ -0,0 +1,11 @@ +/* Test Darwin linker option -bundle. */ +/* Developed by Devang Patel . */ + +/* { 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 00000000000..e32f1d9d3ca --- /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 . */ + +/* { dg-options "-bundle -bundle_loader foo" } */ +/* { dg-do link { target *-*-darwin* } } */ + +int main() +{ + return 0; +} +