This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build id computation


Jan Blunck <jblunck@suse.de> writes:

> [...]
>> Using only the allocated sections is exactly wrong.  "Semantics" includes
>> the contents of all ELF sections, not only SHF_ALLOC ones.  Consider:
>> 
>> 	$ echo 'main(){} /* war is peace */' > a.c
>> 	$ echo 'main(){} /* kumbaya */' > b.c
>> 	$ gcc -o a -g a.c
>> 	$ gcc -o b -g b.c
>> 
>> The allocated sections of a and b are identical, as are their stripped
>> versions.  But the important human meaning of the two builds is that they
>> came from two different sources, written with two very different motivations.
>
> Err, that is too esoteric. You want to checksum the intentions and motivations
> of the programmer?

No.  I believe he'd like the debugger to find the right source file
for each binary.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]