Deok-Min Yun (dm...@rocketmail.com.au) wrote:hm?
: Emmanuel Lesueur <les...@desargues.univ-lyon1.fr> wrote:
: : What makes ELF files bigger is relocation data. The hunk format
: : has a more compact (but less powerful) way to store them.
: Oops, I forgot that one. But relocation data can't be that big, can it? Relocation data with ELF is 12 bytes per relocation, and on ppc
they are often used by pair (2 relocations per access to a
global variable). Hunk format uses 4 bytes per relocation,
and since it doesn't support split-relocations, they are
not much used for ppc. Programs using hunk format use relative
addressing and a table of contents instead, which is slower but
leads to smaller files. The actual size of the code loaded
in memory is more or less the same in both cases.
--
Emmanuel Lesueur - les...@desargues.univ-lyon1.fr
On Friday, January 29, 1999 at 2:00:00 AM UTC-6, Emmanuel Lesueur wrote:
Deok-Min Yun (dm...@rocketmail.com.au) wrote:hm?
: Emmanuel Lesueur <les...@desargues.univ-lyon1.fr> wrote:
: : What makes ELF files bigger is relocation data. The hunk format
: : has a more compact (but less powerful) way to store them.
: Oops, I forgot that one. But relocation data can't be that big, can it? Relocation data with ELF is 12 bytes per relocation, and on ppc
they are often used by pair (2 relocations per access to a
global variable). Hunk format uses 4 bytes per relocation,
and since it doesn't support split-relocations, they are
not much used for ppc. Programs using hunk format use relative
addressing and a table of contents instead, which is slower but
leads to smaller files. The actual size of the code loaded
in memory is more or less the same in both cases.
--
Emmanuel Lesueur - les...@desargues.univ-lyon1.fr
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 226:28:01 |
Calls: | 6,624 |
Calls today: | 6 |
Files: | 12,171 |
Messages: | 5,318,698 |