Le 2014-04-01 00:43, Thorsten Glaser a écrit :
Ah okay. The problem is that “environ” is more portable than what
I got to know as “envp” and you called “arge”, so the shell uses
that instead.
Ah yeah envp. I totally forgot the usual name as I almost never write a
program from scratch and when I do I don't need it.
A possible hack: if the program references a global symbol environ,
insert pseudo-code at the beginning of main that does “environ =
arge;”.
That's special casing environ. The same problem happen for sys_siglist
or other variable. Basically anything not compiled with tcc will be a
problem as there will be no bound region created for it. argv and envp
are just both more common and a bit special as they don't come from a
library but the calling process.
OK. Sounds like… business as usual. I know that ☻
:)
Cheers,
Thomas
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org