mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-11 03:16:41 +08:00
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
This commit is contained in:
parent
59578c8447
commit
61c85ff12d
@ -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
|
||||
|
11
gcc/testsuite/gcc.dg/darwin-ld-1.c
Normal file
11
gcc/testsuite/gcc.dg/darwin-ld-1.c
Normal file
@ -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;
|
||||
}
|
||||
|
11
gcc/testsuite/gcc.dg/darwin-ld-2.c
Normal file
11
gcc/testsuite/gcc.dg/darwin-ld-2.c
Normal file
@ -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;
|
||||
}
|
||||
|
12
gcc/testsuite/gcc.dg/darwin-ld-3.c
Normal file
12
gcc/testsuite/gcc.dg/darwin-ld-3.c
Normal file
@ -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;
|
||||
}
|
||||
|
11
gcc/testsuite/gcc.dg/darwin-ld-4.c
Normal file
11
gcc/testsuite/gcc.dg/darwin-ld-4.c
Normal file
@ -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;
|
||||
}
|
||||
|
11
gcc/testsuite/gcc.dg/darwin-ld-5.c
Normal file
11
gcc/testsuite/gcc.dg/darwin-ld-5.c
Normal file
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user