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]

[Gold] Skip linking when output file is newer than all inputs?


Hi,

I'm working on speeding up some builds and looking around the
--incremental options, I came across the following question:

Is it possible to skip linking altogether when an existing output
executable is newer than all inputs?

I have seen mtime checks in the code, but when I re-run gold
--incremental multiple times, it still runs for around 500 ms, so it
does perform some work, and afterwards the mtime on the output
executable is updated.

I am new to linker internals; would you mind giving me a short
explanation on what is being done here?

Thanks you (and thanks for gold)
Niklas


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