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)
Sat, Jan 11, 3:22 AM
Unknown Object (File)
Fri, Jan 10, 8:15 AM
Unknown Object (File)
Thu, Dec 26, 7:48 PM
Unknown Object (File)
Thu, Dec 26, 11:45 AM
Unknown Object (File)
Thu, Dec 26, 7:38 AM
Unknown Object (File)
Dec 5 2024, 2:10 AM
Unknown Object (File)
Oct 19 2024, 3:52 PM
Unknown Object (File)
Oct 19 2024, 3:33 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

Repository
rS FreeBSD src repository - subversion
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).