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, Jun 6, 1:28 AM
Unknown Object (File)
Thu, Jun 6, 1:05 AM
Unknown Object (File)
May 20 2024, 7:30 AM
Unknown Object (File)
May 20 2024, 7:12 AM
Unknown Object (File)
May 20 2024, 7:12 AM
Unknown Object (File)
May 20 2024, 6:47 AM
Unknown Object (File)
Mar 28 2024, 8:19 AM
Unknown Object (File)
Dec 22 2023, 9:07 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).