Bug 110995 - [loader] [patch] loader wastes space worth symtab size in load_elf_obj.c
Summary: [loader] [patch] loader wastes space worth symtab size in load_elf_obj.c
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 04:20 UTC by Neel Natu
Modified: 2019-01-07 07:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neel Natu 2007-03-29 04:20:02 UTC
When loader loads relocatable object in load_elf_obj.c it wastes space worth
symbol table section size.

The diff below fixes it:

==== //depot/prod/freebsd/Rtricky_freebsd6.0/usr/src/sys/boot/common/load_elf_obj.c#1 - /u/neelnatu/p4/tricky/freebsd/usr/src/sys/boot/common/load_elf_obj.c ====
241,242d240
<                       shdr[i].sh_addr = (Elf_Addr)lastaddr;
<                       lastaddr += shdr[i].sh_size;
Comment 1 K. Macy freebsd_committer 2007-11-16 06:41:30 UTC
Responsible Changed
From-To: freebsd-bugs->kmacy


I know that the fix is valid. Just need feedback from peter or jhb.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2011-06-01 21:32:28 UTC
Responsible Changed
From-To: kmacy->freebsd-bugs

kmacy has asked for all of his PRs to be reassigned, put back into the 
pool.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:45 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped