Subject: Re: Adventures in Assembly (Is it even possible? Yes! Here's the magic formula.)
To: Marc Tooley <sudog@sudog.com>
From: Bang Jun-Young <bjy@mogua.org>
List: port-i386
Date: 08/22/2001 12:26:11
On Tue, Aug 21, 2001 at 11:01:20AM -0700, Marc Tooley wrote:
> ..and gdb stepi through it some more. God hates a coward, after all.
> In my travails, I take a side-trip into the rtld source out of
> curiosity.. in libexec, ld.elf_so source.. There's plenty in there..
> what does it do? Beats me. About 75% of what I see is uncommented,
> arcane references to undocumented structures, #ifdef's for various
> architectures, a debug routine that does nothing
> (_rtld_debug_state()), a separate error function that turns out to be
> an independent implementation of snprintf that further uses a function
> I've never seen before (xvsnprintf()--try a man on that one), and a
> message that states, "This isn't correct."

*printf functions prefixed with x are non-malloc()ing version of
libc equivalents and only used in ld.elf_so. 

Jun-Young

-- 
Bang Jun-Young <bjy@mogua.org>