--sysroot=path

GCC and GNU ld are configured against a common sysroot. This means that where ld scripts refer to their subordinate libraries using an absolute path, the path is still relative to sysroot.

This option enables armlink to treat any absolute paths found from library scripts to be treated as relative to the specified path.

Because implicit ld scripts are going to be enabled only in --sysv mode, this only takes effect when targeting ARM Linux. Relative paths must still search the normal userlibpath list for the file.

This option affects the following ld script commands:

If sysroot is not NULL:

Show/hideSyntax

--sysroot=path

where path is location that is to be treated as the common sysroot.

Show/hideSee also

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