A question about /sys/kern/link_elf.c

prime guomingyan at gmail.com
Tue May 3 04:41:59 PDT 2005


thanks for all your responses.I know that it is just conditional
compiling construct,but I just can't understand the nested *test* of
SPARSE_MAPPING( the 2nd "#ifdef ..." is nested in the 1st one).

Thanks .I think I get it now.

On Monday 02 May 2005 13:35, gerarra at tin.it wrote:
>> >There is a "#ifdef SPARSE_MAPPING" at line 701,and again a "#ifdef
>> >SPARSE_MAPPING" at line 713.I just can't understand the second
> >>one.Does it have any special mean ?
> >>
> >>thanks .
>>
> >It's just conditional compiling construct...however as you can see in
> >the tag "For whatever reason, SPARSE_MAPPING is not even a config
> >option, so this is dead code."

>It dates back to a tools problem that I had on the alpha where the 
>linker would round up the size of the text segment to the next megabyte 
>boundary.


More information about the freebsd-hackers mailing list