[PATCH] reproducible builds: strip embedded file paths
Jessica Clarke
jrtc27 at jrtc27.com
Sun Nov 21 08:45:30 PST 2021
On 21 Nov 2021, at 16:40, Xiang W <wxjstz at 126.com> wrote:
>
> 在 2021-11-18星期四的 17:05 -0800,Vagrant Cascadian写道:
>>
>> Unfortunately, the use of __FILE__ can embed the absolute build path
>> in
>> the resulting binary, resulting in different binaries depending on
>> which
>> path the build was performed in.
>
> Under what scenarios will absolute paths be embed.
As Vagrant said:
"A recent commit 12753d22563f7d2d01f2c6644c7b66b06eb5c90f introduced a
use of __FILE__ to display the file in some debugging output.”
The lazy BUG macro, added in that commit, uses __FILE__.
Jess
More information about the opensbi
mailing list