Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-06 Thread Steffen Nurpmeso
Michael Matz wrote: |On Mon, 6 Jun 2016, Steffen Nurpmeso wrote: |I think this leaks memory when opath contains a string already. pbuf is Indeed, pbuf comes from copy_linker_arg(), i sublimely overlooked it, but indeed see now. I'm sorry. --steffen commit 2a28638

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-06 Thread Michael Matz
Hi, On Mon, 6 Jun 2016, Steffen Nurpmeso wrote: > Bäh! > Take this one, please, the other one deleted an option. > Ciao! I think this leaks memory when opath contains a string already. pbuf is allocated memory, you free the opath, copy pbuf into npath, but then leak pbuf itself (it's not

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-06 Thread Steffen Nurpmeso
Bäh! Take this one, please, the other one deleted an option. Ciao! --steffen commit 2b59c82 (HEAD -> refs/heads/i) Author: Steffen (Daode) Nurpmeso AuthorDate: 2016-06-04 15:48:15 +0200 Commit: Steffen (Daode) Nurpmeso CommitDate: 2016-06-06

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-06 Thread Steffen Nurpmeso
Sorry, forgot the diff: --steffen commit db263ba (HEAD -> refs/heads/i) Author: Steffen (Daode) Nurpmeso AuthorDate: 2016-06-04 15:48:15 +0200 Commit: Steffen (Daode) Nurpmeso CommitDate: 2016-06-06 13:37:03 +0200 Allow multiple -rpath linker

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-06 Thread Steffen Nurpmeso
Hello. David Mertens wrote: |Also, I am not sure what others think about the first line in which y\ |ou declare two integers and initialize them with the return values of\ | function |calls. I guess that's fine, but I don't see it often in the codebase.\ |

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-05 Thread Michael Matz
Hi, On Sat, 4 Jun 2016, David Mertens wrote: Nice. I am not very familiar with this part of tcc, but I noticed the use of ':' as a path separator. Is this the path separator used across all platforms? Yes. On all those that support DT_RPATH or DT_RUNPATH, which is an ELFism ... In

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-04 Thread David Mertens
Nice. I am not very familiar with this part of tcc, but I noticed the use of ':' as a path separator. Is this the path separator used across all platforms? In particular, what about Windows? Also, I am not sure what others think about the first line in which you declare two integers and

Re: [Tinycc-devel] -Wl,-rpath not passed through?

2016-06-04 Thread Steffen Nurpmeso
Hi! Pretty stormy here, huh? i wrote: |Hello again! | |I have just recognized that i need to use -Wl,-rpath now (new |So then, here we go: | ?0[steffen@wales nail.git]$ readelf -d s-nail | 0x000f (RPATH) Library rpath: [/usr/lib] |This is still true for

[Tinycc-devel] -Wl,-rpath not passed through?

2016-06-02 Thread Steffen Nurpmeso
Hello again! I have just recognized that i need to use -Wl,-rpath now (new layout for/with optional (hidden) packages in my ~/usr/opt/), so great that tcc(1) does support this! (I always wondered why -L isn't automatically taken over for this purpose, however, since it is standardized and why