Re: [dev] [scc] typeof is a gcc keyword
On Tue, Jul 05, 2016 at 08:11:51PM +0200, Hinnerk van Bruinehsen wrote:
> On Tue, Jul 05, 2016 at 07:24:38PM +0200, Quentin Rameau wrote:
> > > So let's consider 3 situations.
> > > 1-- Compile scc with gcc. Use the output binary to compile scc. Get B1
> > > 2-- Compile scc with tcc. Use the output binary to compile scc. Get B2
> > > 3-- Compile scc with clang. Use the output binary to compile scc. Get
> > > B3
> > >
> > > Are you saying that if we compare the md5 of B1, B2 and B3 they will
> > > be identical?
> > Well, that could depend on how high are solar winds that day (apart
> > from that, they should be, yes).
>
> Try it out: you are mistaken here. Just use a simple hello world and you
> will see that at least gcc and clang don't generate the same binary (if
> compared with some kind of bindiff you'll see that they are not even
> close) - I just tried it myself.
>
> But compiling a compiler with different compilers and compare the
> binaries each version generates is a way to make sure that no (possibly)
> malicous) function is injected (see [1] - a paper about a way to counter
> the attack desribed in "Reflections on Trusting Trust" which itself is a
> good read, too).
>
Sorry, my bad - I just missed the step about compiling scc with the
result of scc's compilation by one of the other compilers.
So you're correct and the reference should more or less prove your
point.
Sorry again for the noise.
Received on Tue Jul 05 2016 - 20:16:03 CEST
This archive was generated by hypermail 2.3.0
: Tue Jul 05 2016 - 20:24:11 CEST