History

Add linker's --export-dynamic flag alias

Since 9336fa7ae50ef60cb0049136a7831e7e8d94a20a --export-dynamic is supported. Add this conventional flag as alias.

Andrey Gursky committed 8 years ago

Commit 91bdb5a1 parent 8f6fcb73 files · +8 −0Browse files

Unified · Split

3 files
  1. libtcc.c +2 −0
  2. tcc-doc.texi +5 −0
  3. tcc.c +1 −0
libtcc.c+2−0
@@ -1365,6 +1365,8 @@ static int tcc_set_linker(TCCState *s, const char *option) · 1364 unmodified lines
1365 ignoring = 1;1365 ignoring = 1;
1366 } else if (link_option(option, "export-all-symbols", &p)) {1366 } else if (link_option(option, "export-all-symbols", &p)) {
1367 s->rdynamic = 1;1367 s->rdynamic = 1;
1368 } else if (link_option(option, "export-dynamic", &p)) {
1369 s->rdynamic = 1;
1368 } else if (link_option(option, "rpath=", &p)) {1370 } else if (link_option(option, "rpath=", &p)) {
1369 copy_linker_arg(&s->rpath, p, ':');1371 copy_linker_arg(&s->rpath, p, ':');
1370 } else if (link_option(option, "enable-new-dtags", &p)) {1372 } else if (link_option(option, "enable-new-dtags", &p)) {
tcc-doc.texi+5−0
@@ -322,6 +322,11 @@ Binary image (only for executable output) · 321 unmodified lines
322COFF output format (only for executable output for TMS320C67xx target)322COFF output format (only for executable output for TMS320C67xx target)
323@end table323@end table
324 324
325@item -Wl,--export-all-symbols
326@item -Wl,--export-dynamic
327Export global symbols to the dynamic linker. It is useful when a library
328opened with @code{dlopen()} needs to access executable symbols.
329
325@item -Wl,-subsystem=console/gui/wince/...330@item -Wl,-subsystem=console/gui/wince/...
326Set type for PE (Windows) executables.331Set type for PE (Windows) executables.
327 332
tcc.c+1−0
@@ -117,6 +117,7 @@ static const char help2[] = · 116 unmodified lines
117 " -nostdlib do not link with standard crt/libs\n"117 " -nostdlib do not link with standard crt/libs\n"
118 " -[no-]whole-archive load lib(s) fully/only as needed\n"118 " -[no-]whole-archive load lib(s) fully/only as needed\n"
119 " -export-all-symbols same as -rdynamic\n"119 " -export-all-symbols same as -rdynamic\n"
120 " -export-dynamic same as -rdynamic\n"
120 " -image-base= -Ttext= set base address of executable\n"121 " -image-base= -Ttext= set base address of executable\n"
121 " -section-alignment= set section alignment in executable\n"122 " -section-alignment= set section alignment in executable\n"
122#ifdef TCC_TARGET_PE123#ifdef TCC_TARGET_PE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t