https://sourceware.org/bugzilla/show_bug.cgi?id=32211
--- Comment #6 from Dan McDonald <danmcd at mnx dot io> ---
root@ubuntu-22:~# cat x.s
        .text
foo:
        .zero 10
        mov %eax, %ebx
root@ubuntu-22:~# gcc -c x.s
root@ubuntu-22:~# file x.o
x.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
root@ubuntu-22:~# objdump --version
GNU objdump (GNU Binutils for Ubuntu) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
root@ubuntu-22:~# objdump -z -D x.o

x.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <foo>:
   0:   00 00                   add    %al,(%rax)
   2:   00 00                   add    %al,(%rax)
   4:   00 00                   add    %al,(%rax)
   6:   00 00                   add    %al,(%rax)
   8:   00 00                   add    %al,(%rax)
   a:   89 c3                   mov    %eax,%ebx
root@ubuntu-22:~# as -mx86-used-note=no -o x2.o x.s
root@ubuntu-22:~# objdump -z -D x2.o

x2.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <foo>:
   0:   00 00                   add    %al,(%rax)
   2:   00 00                   add    %al,(%rax)
   4:   00 00                   add    %al,(%rax)
   6:   00 00                   add    %al,(%rax)
   8:   00 00                   add    %al,(%rax)
   a:   89 c3                   mov    %eax,%ebx
root@ubuntu-22:~#

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to