On Sat, Jan 14, 2012 at 07:34:22PM -0500, Mike Frysinger wrote:
> They expand into the same code, but using the ELF_xxx()/ElfW() macros
> makes it much easier to spot similarities between code bases.

It would of course be much simpler to use size_t, uint32_t, etc. as
appropriate. All the types in ELF are either always-8-bit,
always-16-bit, always-32-bit, or system wordsize (size_t)... It's
really ridiculous how much code is considered arch-specific in the
glibc and uclibc dynamic linkers. If you look at mine in musl
(admittedly less featureful, but most of the omissions are not in
platform-specific areas), there are only about 30 lines of
platform-specific code in the dynamic linker (and even those mainly
exist just because ELF has separate R_$ARCH_xxx relocations for each
arch rather than unifying the ones with the same behavior needs).

Rich
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to