[PATCH 6/8] x86: allow @size to also (sensibly) apply to sections
H.J. Lu
hjl.tools@gmail.com
Fri Apr 23 13:38:27 GMT 2021
On Fri, Apr 23, 2021 at 6:30 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 23.04.2021 15:23, H.J. Lu wrote:
> > On Fri, Apr 23, 2021 at 1:37 AM Jan Beulich <jbeulich@suse.com> wrote:
> >> --- a/gas/testsuite/gas/i386/x86-64-size-2.d
> >> +++ b/gas/testsuite/gas/i386/x86-64-size-2.d
> >> @@ -18,4 +18,7 @@ Disassembly of section .text:
> >> [ ]*[a-f0-9]+: b8 90 99 99 19 mov \$0x19999990,%eax
> >> [ ]*[a-f0-9]+: b8 70 99 99 19 mov \$0x19999970,%eax
> >> [ ]*[a-f0-9]+: b8 b0 99 99 19 mov \$0x199999b0,%eax
> >> +[ ]*[a-f0-9]+: b8 3c 00 00 00 mov \$0x3c,%eax
> >
> > Is 0x3c the .text section size?
>
> Yes.
>
> >> +[ ]*[a-f0-9]+: b8 60 00 00 00 mov \$0x60,%eax
> >
> > Is 0x60 the .data section size?
>
> Yes.
>
> >> +[ ]*[a-f0-9]+: b8 (ae|b0) 99 99 09 mov \$0x99999(ae|b0),%eax
> >
> > Is the .bss section size 1?
>
> No. Where are you seeing 1?
>
> > Please update tests to verify section sizes.
>
> I'm afraid I have no clue what you mean by this.
>
Please add -h to objdump to show the section header and check the
section sizes.
--
H.J.
More information about the Binutils
mailing list