04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

• --configure_extra_includes=paths on page 2-25<br />

• --configure_extra_libraries=paths on page 2-26<br />

• --configure_gcc=path on page 2-27<br />

• --configure_gld=path on page 2-28<br />

• --configure_sysroot=path on page 2-29<br />

• --gnu_defaults on page 2-68<br />

• --relaxed_ref_def, --no_relaxed_ref_def on page 2-110<br />

• --shared on page 2-115<br />

• --signed_bitfields, --unsigned_bitfields on page 2-116<br />

• --translate_g++ on page 2-122<br />

• --translate_gld<br />

• --arm_linux on page 2-11 in the Linker Reference Guide<br />

• --library=name on page 2-54 in the Linker Reference Guide<br />

• --search_dynamic_libraries, --no_search_dynamic_libraries on page 2-78 in the<br />

Linker Reference Guide<br />

• Application Note 212 - Building Linux applications using RVCT v4.0 and the<br />

GNU <strong>Tools</strong> and Libraries.<br />

2.1.158 --translate_gld<br />

This option helps to emulate GNU ld by enabling the translation of command lines from<br />

the GNU tools.<br />

Usage<br />

You can use this option to provide either of the following:<br />

• a full GNU ld emulation targeting <strong>ARM</strong> Linux<br />

• a subset of full GNU ld emulation in the form of translating individual GNU ld<br />

command-line arguments into their RVCT equivalents.<br />

To provide a full GNU ld emulation, you must also use --arm_linux_config_file. This<br />

combination of options selects the appropriate GNU header files and libraries specified<br />

by the configuration file, and includes changes to some default behaviors.<br />

To translate individual GNU ld command-line arguments into their RVCT equivalents<br />

without aiming for full GNU ld emulation, use --translate_gld to emulate GNU ld, but<br />

do not use it with --arm_linux_config_file. Because you are not aiming for full GNU<br />

ld emulation with this method, RVCT default behavior is retained, and no defaults are<br />

set for targeting <strong>ARM</strong> Linux. RVCT library paths and option defaults remained<br />

unchanged.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-125<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!