Page MenuHomeFreeBSD

Set up default shstrtab entries at initialization
ClosedPublic

Authored by emaste on Dec 19 2014, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 2:10 AM
Unknown Object (File)
Oct 19 2024, 3:52 PM
Unknown Object (File)
Oct 19 2024, 3:33 PM
Unknown Object (File)
Sep 23 2024, 7:24 PM
Unknown Object (File)
Sep 14 2024, 10:55 AM
Unknown Object (File)
Sep 10 2024, 9:05 PM
Unknown Object (File)
Sep 8 2024, 2:41 PM
Unknown Object (File)
Aug 13 2024, 2:49 PM

Details

Summary

If we use -R to remove all sections we still need a .shstrtab (which will itself be the only section entry). Do not wait until the addition of the first non-default entry to create the default ones.

Elftoolchain ticket 463
https://sourceforge.net/p/elftoolchain/tickets/463/

Test Plan
touch empty.s
make empty.o
strip -o empty-stripped.o -R .text -R .data -R .bss -R .ARM.attributes -R .reginfo -R .gnu.attributes -R .MIPS.abiflags -R .pdr -R .xtensa.info empty.o
readelf -S empty-stripped.o

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste retitled this revision from to Set up default shstrtab entries at initialization.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a subscriber: Unknown Object (MLST).
imp added a reviewer: imp.
imp added a subscriber: imp.

I believe this is OK...

This revision is now accepted and ready to land.Dec 19 2014, 8:19 PM
emaste updated this revision to Diff 2813.

Closed by commit rS276061 (authored by @emaste).