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]
Other format: [Raw text]

Re: objdump --full-contents truncates addresses to long


Alexandre Oliva <aoliva at redhat dot com> writes:

> Truncating to long is not a good idea for a 32-x-64 objdump.  Is there
> any reason for us to not use bfd_printf_vma?  Perhaps bfd_printf_vma
> should be made more flexible, accepting arguments specifying the a
> minimum/maximum width to be printed, and whether to pad with zeros?
> Other than the ugly implications of this change to the testsuite, that
> I'll look into addressing if this patch is approved, is this ok to
> install along with the testsuite fixes?

Doesn't this make the output particularly ugly when dumping object
files?  Perhaps the code could use bfd_sprintf_vma and strip off
excess leading zeroes, while retaining even spacing?

Ian


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