Explicitly clarify that SECTION(@) returns the name of the current section

This commit is contained in:
Rangi
2026-02-06 19:37:49 -05:00
parent 7c1e1fe515
commit af0505b4cd

View File

@@ -745,9 +745,14 @@ The result may be constant if
is able to compute it. is able to compute it.
.It Fn SECTION symbol Ta Returns the name of the section that .It Fn SECTION symbol Ta Returns the name of the section that
.Ar symbol .Ar symbol
is in. is defined in.
.Ar symbol .Ar symbol
must have been defined already. must have been defined already.
If
.Ar arg
is the symbol
.Ic @ ,
this function returns the name of the current section.
.It Fn SIZEOF arg Ta If .It Fn SIZEOF arg Ta If
.Ar arg .Ar arg
is a string, this function returns the size of the section named is a string, this function returns the size of the section named