Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2007 03:08:03 GMT
From:      Neel Natu<neelnatu@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/110995: loader wastes space worth symtab size in load_elf_obj.c
Message-ID:  <200703290308.l2T38369041074@www.freebsd.org>
Resent-Message-ID: <200703290320.l2T3K2DQ036318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110995
>Category:       kern
>Synopsis:       loader wastes space worth symtab size in load_elf_obj.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 29 03:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Neel Natu
>Release:        6.0
>Organization:
>Environment:
>Description:
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;


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703290308.l2T38369041074>