- 论坛徽章:
- 0
|
都是ld 的参数,
-s
Strip symbolic information from the output file. The debug and
line sections and their associated relocation entries will be
removed. Except for relocatable files or shared objects, the
symbol table and string table sections will also be removed
from the output object file.
-lx
Search a library libx.so or libx.a, the conventional names for
shared object and archive libraries, respectively. In dynamic
mode, unless the -Bstatic option is in effect, ld searches each
directory specified in the library search path for a file
libx.so or libx.a. The directory search stops at the first
directory containing either. ld chooses the file ending in .so
if -lx expands to two files whose names are of the form libx.so
and libx.a. If no libx.so is found, then ld accepts libx.a. In
static mode, or when the -Bstatic option is in effect, ld
selects only the file ending in .a. A library is searched when
its name is encountered, so the order of the -l, -B and -L is
significant. |
|