Skip to contentSkip to conversation

mips kernel modules are very big, any suggestions on reducing their size

DISCUSSION D.J. Barrow 1 participant 1 message Apr 25, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,
For every external symbol in a module.
Because of the -mlong-calls gcc option you have 2 relocation entries am R_MIPS_HI_16 R_MIPS_LO_16 entry. A string table entry for the symbol & three instructions for each jump or call. We can eliminate the string table entry by making as many functions as possible static but this means changing investigating every source file of which there are around 100.

It would save a fortune in space if we were allowed link into the kernel but the module is from broadcom & we are not allowed to do this.

If anyone has any good suggestions I would be very greatful.

D.J. Barrow Linux kernel developer
eMail: [email protected]
Work:+44-1274-538401
Home: +353-22-47196.
Mobile (IRL) +353-(0)86 1715438

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com