Ticket #148 (closed defect: fixed)
Doesn't set elf flags for execution when using (g)as parser
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | P1 | Milestone: | |
| Component: | Parser: GAS-compatible | Version: | other |
| Severity: | normal | Keywords: | |
| Cc: |
Description
nathan@nathan-desktop:~$ yasm -p nasm -f elf32 -o testn.o testn.asm nathan@nathan-desktop:~$ readelf -S testn.o There are 5 section headers, starting at offset 0xd0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .shstrtab STRTAB 00000000 00004c 000021 00 0 0 0 [ 2] .strtab STRTAB 00000000 000070 000012 00 0 0 0 [ 3] .symtab SYMTAB 00000000 000084 000040 10 2 3 4 [ 4] .text PROGBITS 00000000 000040 000009 00 AX 0 0 16
nathan@nathan-desktop:~$ yasm -p gas -f elf32 -o testg.o testg.asm nathan@nathan-desktop:~$ readelf -S testg.o There are 5 section headers, starting at offset 0xd0:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .shstrtab STRTAB 00000000 00004c 000021 00 0 0 0 [ 2] .strtab STRTAB 00000000 000070 000012 00 0 0 0 [ 3] .symtab SYMTAB 00000000 000084 000040 10 2 3 4 [ 4] .text PROGBITS 00000000 000040 000009 00 0 0 16

