tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] "nostdlib" option in libtcc


From: Gabriel Corneanu
Subject: [Tinycc-devel] "nostdlib" option in libtcc
Date: Tue, 17 Apr 2012 09:34:23 +0200
User-agent: Opera Mail/11.62 (Win32)

Hello everybody,

I asked this in a reply to another topic...

I have a simple change request; I need "nostdlib" with libtcc.
I didn't find any workaround except adding it to "tcc_set_linker" function.

Is there any reason against it?

Can someone add this simple patch? Or should I add it myself?

diff --git a/libtcc.c b/libtcc.c
index f448c34..fc3213b 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1489,6 +1489,8 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, char *option, int multi)
         end = NULL;
         if (link_option(option, "Bsymbolic", &p)) {
             s->symbolic = TRUE;
+        } else if (link_option(option, "nostdlib", &p)) {
+            s->nostdlib = TRUE;
         } else if (link_option(option, "fini=", &p)) {
             s->fini_symbol = p;
             if (s->warn_unsupported)

Regards,
Gabriel

Attachment: libtcc.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]