This is the mail archive of the binutils@sources.redhat.com 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]

Re: timestamp in coff header breaks ld testsuite


Hi!

Friday, 09 November, 2001 Nick Clifton nickc@cambridge.redhat.com wrote:

>> that's why i thought about something like pe-tool utility so that
>> testsuite can run 'pe-tool --clear-timestamp' before comparing
>> objects.

NC> Actually this is something that it might be worth adding to objcopy,
NC> since that is the generic tool for this kind of transformation.

as far as i can see, it's currently quite target-independent (S3Force
is the only exception). all coff-specific processing seems to be done
by separate utilities. but if it's ok to include coff/internal.h and
libcoff.h in objcopy.c, then fine.

btw, what is the right place to pass backend-specific parameters from
application to bfd -- bfd->tdata or bfd->usrdata?

NC> The other alternative is to teach the ld test harness about PEI format
NC> files and when it is performing binary compares, have it skip the
NC> timestamp field.

if we'd have a portable way to determine on what offset in file this
field resides, it'd be just almost as easy to patch an object file :)

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


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