Since 9336fa7ae50ef60cb0049136a7831e7e8d94a20a --export-dynamic is supported. Add this conventional flag as alias.
Unified · Split
| @@ -1365,6 +1365,8 @@ static int tcc_set_linker(TCCState *s, const char *option) · 1364 unmodified lines | ||
| 1365 | 1365 | ignoring = 1; |
| 1366 | 1366 | } else if (link_option(option, "export-all-symbols", &p)) { |
| 1367 | 1367 | s->rdynamic = 1; |
| 1368 | + } else if (link_option(option, "export-dynamic", &p)) { | |
| 1369 | + s->rdynamic = 1; | |
| 1368 | 1370 | } else if (link_option(option, "rpath=", &p)) { |
| 1369 | 1371 | copy_linker_arg(&s->rpath, p, ':'); |
| 1370 | 1372 | } else if (link_option(option, "enable-new-dtags", &p)) { |
| @@ -322,6 +322,11 @@ Binary image (only for executable output) · 321 unmodified lines | ||
| 322 | 322 | COFF output format (only for executable output for TMS320C67xx target) |
| 323 | 323 | @end table |
| 324 | 324 | |
| 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 | + | |
| 325 | 330 | @item -Wl,-subsystem=console/gui/wince/... |
| 326 | 331 | Set type for PE (Windows) executables. |
| 327 | 332 | |
| @@ -117,6 +117,7 @@ static const char help2[] = · 116 unmodified lines | ||
| 117 | 117 | " -nostdlib do not link with standard crt/libs\n" |
| 118 | 118 | " -[no-]whole-archive load lib(s) fully/only as needed\n" |
| 119 | 119 | " -export-all-symbols same as -rdynamic\n" |
| 120 | + " -export-dynamic same as -rdynamic\n" | |
| 120 | 121 | " -image-base= -Ttext= set base address of executable\n" |
| 121 | 122 | " -section-alignment= set section alignment in executable\n" |
| 122 | 123 | #ifdef TCC_TARGET_PE |