[PATCH] ld: Fix printed sizes in map file

Alan Modra amodra@gmail.com
Tue Nov 5 09:32:00 GMT 2019


On Mon, Nov 04, 2019 at 09:10:14AM +0100, Christian Eggers wrote:
> +	* ldlang.c (print_input_section): Shift printed size by opb_shift.

OK, but

> -  minfo ("0x%V %W %pB\n", addr, size, i->owner);
> +  minfo ("0x%V %W %pB\n", addr, TO_ADDR(size), i->owner);

to comply with the GNU coding standards, there should be a space
between the macro and the opening parenthesis.

>    if (size != i->rawsize && i->rawsize != 0)

Please fix the rawsize display too.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list