#148 (Doesn't set elf flags for execution when using (g)as parser) – The Yasm Modular Assembler Project
Modify

Ticket #148 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

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

Attachments

testg.asm Download (78 bytes) - added by anonymous 2 years ago.
testn.asm Download (85 bytes) - added by anonymous 2 years ago.

Change History

Changed 2 years ago by anonymous

Changed 2 years ago by anonymous

comment:1 Changed 2 years ago by peter

  • Status changed from new to closed
  • Resolution set to fixed

(In [2114]) Fix #148: Don't clear elf section flags in GAS if it's a standard section and no GAS flags were provided.

comment:2 Changed 22 months ago by peter

(In [2145]) Merge [2114] and [2115] from trunk (Fix #148, clearing of GAS elf sectflags).

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.