8.170 --shared

Enables a shared library to be generated when building for ARM Linux with the --arm_linux_paths option.

It enables the selection of libraries and initialization code suitable for use in a shared library, based on the ARM Linux configuration.


You must use this option in conjunction with --arm_linux_paths and --apcs=/fpic.


Link two object files, obj1.o and obj2.o, into a shared library named libexample.o:

armcc --arm_linux_paths --arm_linux_config_file=my_config_file --shared -o libexample.so obj1.o obj2.o
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.