--fpic

This option enables you to link Position-Independent Code (PIC), that is, code that has been compiled using the --apcs=/fpic qualifier. Relative addressing is only implemented when your code makes use of System V shared libraries.

Note

The linker outputs a downgradable error if --shared is used and --fpic is not used.

Show/hideUsage

You must use --fpic with --sysv and --shared.

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0493F
Non-ConfidentialID091611