[Nasm-bugs] [Bug 3392836] New: section.<secname>.start worse then label
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Tue Mar 7 05:17:03 PST 2023
https://bugzilla.nasm.us/show_bug.cgi?id=3392836
Bug ID: 3392836
Summary: section.<secname>.start worse then label
Product: NASM
Version: 2.16.xx
Hardware: PC
OS: Linux
Status: OPEN
Severity: minor
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: mikar_gibbros at yahoo.com
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: From OS distribution
%iassign _org 0x01000000
org _org
section my_section align=1 start=_org+16 ; start = 0x01000010 i.e. 10 00 00 01
section_start_label: ; 0x01000010 i.e. 10 00 00 01
dd section_start_label
dd section.my_section.start
section_end_label: ; 0x01000018 i.e. 18 00 00 01
dd section_end_label - section_start_label ; 0x00000008 i.e. 08 00 00 00
; dd section_end_label - section.my_section.start ; error: expression is not
simple or relocatable
my_section_size equ section_end_label - section_start_label
dd my_section_size ; 0x00000008 i.e. 08 00 00 00
; my_section_size2 equ section_end_label - section.my_section.start ; error:
invalid operand type
; dd my_section_size2
; Anywhere section_start_label can be used, section.my_section.start is also
known and should just work. Maybe the assembler could create a ..@ label and
reference it as needed?
; using [section <secname>] does not fix this issue.
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list