This is the mail archive of the
mailing list for the binutils project.
Re: Missing TO_ADDR
- From: Alan Modra <amodra at gmail dot com>
- To: dgisselq at ieee dot org
- Cc: binutils at sourceware dot org
- Date: Fri, 1 Apr 2016 11:57:57 +1030
- Subject: Re: Missing TO_ADDR
- Authentication-results: sourceware.org; auth=none
- References: <20160330073151 dot GK15812 at bubble dot grove dot modra dot org> <1459339484 dot 9097 dot 134 dot camel at jericho> <20160331073959 dot GT15812 at bubble dot grove dot modra dot org> <1459422766 dot 9097 dot 169 dot camel at jericho>
On Thu, Mar 31, 2016 at 07:12:46AM -0400, Dan wrote:
> Are you sure you want to take the TO_SIZE directives *away* from the
> minfo statements? With the TO_SIZE directives, the addresses add up:
> last address plus size adds up to the next address, and you can see
> nothing missing. Without the TO_SIZE directives, the units don't match.
You mean, TO_ADDR. I understand your point and thought about
converting all the sizes to address units, but decided not to because
other places report octet sizes. eg. rawsize in print_input_section,
and print_data_statement, print_reloc_statement,
print_padding_statement. It seems likely that those functions bump
print_vma by the wrong amount too.
Hmm, I missed seeing that we have MEMORY region length in bytes, and
I'm not sure what the units are for symbol size in lang_one_common.
Australia Development Lab, IBM