tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] "nostdlib" option in libtcc


From: Milutin Jovanović
Subject: Re: [Tinycc-devel] "nostdlib" option in libtcc
Date: Tue, 17 Apr 2012 10:20:01 -0400


You should really do it. Set yourself up to commit, and controbuting in the future will be much easier. Also, your work will be correctly attributed to you. Just execute:

git remote set-url --push origin ssh://address@hidden/srv/git/tinycc.git

and then you will be able to do "git push" your changes.

Miki.



On 17 April 2012 03:34, Gabriel Corneanu <address@hidden> wrote:
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
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



reply via email to

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