gbdev / rgbobj

A Rust program for humans to inspect RGBDS object files
MIT License
5 stars 1 forks source link

Handle source node ID + line number for sections #13

Closed Rangi42 closed 1 month ago

Rangi42 commented 2 months ago

See https://github.com/gbdev/rgbds/pull/1494

Rangi42 commented 2 months ago
$ cat foo.asm
SECTION "Foo", ROM0
Label::
dw STARTOF("Foo")

$ rgbobj -y all -s all foo.o
foo.o [130 bytes]: RGBDS object v9 revision 11

Symbols
-------

Label (#0) [export]
    foo.asm(2)
    SECTION: "Foo" [@ $0000]

Sections
--------

SECTION "Foo", ROM0
    foo.asm(1)
    $0002 (2) bytes:
    0000: 0000

    1 patch