@@ -192,7 +192,7 @@ Key to Flags:
192
192
y (purecode), p (processor specific)
193
193
```
194
194
195
- Now, the ` .uninit ` section is marked as NOBITS, meaning it will be allocated in memory but not stored
195
+ Now, the ` .uninit ` section has the type ` NOBITS ` , meaning it will be allocated in memory but not stored
196
196
in the ELF file, ensuring that no unnecessary data is included in the binary. Let's see the segments:
197
197
198
198
```
@@ -231,11 +231,10 @@ ideally at compile-time. I found the `--orphaned-handling` flag of the `ld` and
231
231
This flag allows us to specify what should be the behavior when an orphaned
232
232
section is encountered. You have the following options:
233
233
234
- - ` place ` : the worst option. Just silently ignores that this section is orphaned
235
- and places it somewhere in memory.
236
- - ` warn ` : same as place, but at least it emits a warning when linking.
237
- - ` error ` : trigger a link-time error when a section is orphaned.
238
- - ` discard ` : The data in the orphaned section is just dropped.
234
+ - ` place ` : silently ignores that this section is orphaned and places it somewhere in memory.
235
+ - ` warn ` : same as place, but it emits a warning when linking.
236
+ - ` error ` : triggers a link-time error when a section is orphaned.
237
+ - ` discard ` : drops the data in the orphaned section.
239
238
240
239
By setting ` --orphan-handling=error ` , we prevent silent misplacement of sections,
241
240
ensuring a predictable memory layout. This serves as a safeguard against subtle
0 commit comments