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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compiler Command-line Options<br />

2.1.39 --default_definition_visibility=visibility<br />

This option controls the default ELF symbol visibility of extern variable and function<br />

definitions.<br />

Syntax<br />

--default_definition_visibility=visibility<br />

Where:<br />

visibility<br />

is default, hidden, internal, or protected.<br />

Usage<br />

Use --default_definition_visibility=visibility to force the compiler to use the<br />

specified ELF symbol visibility for all extern variables and functions defined in the<br />

source file, if they do not use __declspec(dll*) or<br />

__attribute__((visibility(”visibility_type”))). Unlike --hide_all, --no_hide_all,<br />

this does not affect extern references.<br />

Default<br />

By default, --default_definition_visibility=hidden.<br />

See also<br />

• --hide_all, --no_hide_all on page 2-71<br />

• __attribute__((visibility("visibility_type"))) on page 4-40<br />

• __attribute__((visibility("visibility_type"))) on page 4-55<br />

• Symbol visibility on page 4-5 in Using the Linker.<br />

2.1.40 --default_extension=ext<br />

This option enables you to change the filename extension for object files from the<br />

default extension (.o) to an extension of your choice.<br />

Syntax<br />

--default_extension=ext<br />

Where:<br />

ext<br />

is the filename extension of your choice.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!