You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/abi.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,26 @@ r[abi.link_section.format]
121
121
The format of the `link_section` attribute is platform-specific, and the
122
122
supported options varies depending on the underlying object file format.
123
123
124
+
r[abi.link_section.elf]
125
+
### Link section ELF format
126
+
127
+
TODO, maybe document `.hash` -> `SHT_HASH` etc.?
128
+
129
+
Or perhaps just link to <https://www.man7.org/linux/man-pages/man5/elf.5.html#:~:text=Various%20sections%20hold%20program%20and%20control%20information>?
130
+
131
+
r[abi.link_section.coff]
132
+
### Link section COFF format
133
+
134
+
TODO. Something like:
135
+
136
+
r[abi.link_section.coff.syntax]
137
+
```grammar,attributes
138
+
COFFLinkSection -> IDENTIFIER (`$` COFFOrder)?
139
+
COFFOrder -> IDENTIFIER
140
+
```
141
+
142
+
See <https://learn.microsoft.com/en-us/windows/win32/debug/pe-format>.
143
+
124
144
r[abi.link_section.mach-o]
125
145
### Link section Mach-O format
126
146
@@ -152,6 +172,16 @@ size.
152
172
r[abi.link_section.mach-o.default-type]
153
173
The section type defaults to `regular` if not set.
0 commit comments