Page MenuHomeFreeBSD

loader: Don't reserve space for symbols twice.
ClosedPublic

Authored by imp on Jul 4 2021, 4:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 3:14 AM
Unknown Object (File)
Fri, Apr 5, 11:31 PM
Unknown Object (File)
Feb 11 2024, 3:19 PM
Unknown Object (File)
Jan 5 2024, 4:29 AM
Unknown Object (File)
Dec 21 2023, 12:38 PM
Unknown Object (File)
Dec 20 2023, 8:35 AM
Unknown Object (File)
Oct 14 2023, 5:59 PM
Unknown Object (File)
Sep 4 2023, 6:02 PM
Subscribers

Details

Summary

The current code bumps lastaddr twice for the symbol table
location. However, the first bump is bogus and results in wasted
space. Remove it.

PR: 110995

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jul 4 2021, 4:11 PM
imp added a reviewer: jhb.
stand/common/load_elf_obj.c
293–295

I think we already do the stuff above here, so we can just do these lines and omit them above.

imp retitled this revision from don't load symbol table into memory to loader: Don't reserve space for symbols twice..Jul 4 2021, 4:40 PM
imp edited the summary of this revision. (Show Details)
imp added a reviewer: neel.
imp edited the summary of this revision. (Show Details)

actually remove... no need to comment these redunant lines out.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 12 2021, 9:31 PM
This revision was automatically updated to reflect the committed changes.