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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: dj_barrow@xxxxxxxxxxx
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 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux