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
13651365 ignoring = 1;
13661366 } else if (link_option(option, "export-all-symbols", &p)) {
13671367 s->rdynamic = 1;
1368+ } else if (link_option(option, "export-dynamic", &p)) {
1369+ s->rdynamic = 1;
13681370 } else if (link_option(option, "rpath=", &p)) {
13691371 copy_linker_arg(&s->rpath, p, ':');
13701372 } 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
322322 COFF output format (only for executable output for TMS320C67xx target)
323323 @end table
324324
325+@item -Wl,--export-all-symbols
326+@item -Wl,--export-dynamic
327+Export global symbols to the dynamic linker. It is useful when a library
328+opened with @code{dlopen()} needs to access executable symbols.
329+
325330 @item -Wl,-subsystem=console/gui/wince/...
326331 Set type for PE (Windows) executables.
327332
tcc.c+1−0
@@ -117,6 +117,7 @@ static const char help2[] = · 116 unmodified lines
117117 " -nostdlib do not link with standard crt/libs\n"
118118 " -[no-]whole-archive load lib(s) fully/only as needed\n"
119119 " -export-all-symbols same as -rdynamic\n"
120+ " -export-dynamic same as -rdynamic\n"
120121 " -image-base= -Ttext= set base address of executable\n"
121122 " -section-alignment= set section alignment in executable\n"
122123 #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