aboutsummaryrefslogtreecommitdiff
path: root/modutils/insmod.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* import support for microblaze relocations from uClinux-distvapier2006-06-061-0/+59
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15297 69ca8d6d-28ef-0310-b511-8ec308f3f277
* merge blackfin/microblaze from uClinux-distvapier2006-06-061-0/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-031-2/+2
| | | | | | | | | and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@15272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xopen3()aldot2006-04-131-17/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - we only need obj_gpl_license if ENABLE_FEATURE_CHECK_TAINTED_MODULE is setaldot2006-03-291-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stephane Billiart found an endianness bug in insmod.landley2006-03-251-7/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko turning static const int (which gets emitted intolandley2006-03-101-17/+22
| | | | | | | the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-2/+2
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert P. Day, moving byte order checks to use platform.h macros.landley2006-03-041-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14448 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)landley2006-03-011-3/+2
| | | | | | | from before "if(x) free(x)". git-svn-id: svn://busybox.net/trunk/busybox@14396 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update comment.landley2006-02-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14146 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix building on ppc64vapier2006-02-181-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14109 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hopefully the last of the annoying signed/unsigned and mixed type errorsandersen2006-01-301-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13733 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import nios2 support from microtronixvapier2006-01-041-0/+171
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make insmod quiet by default (patch from Yann E. Morin).landley2005-12-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12838 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uClibc can't handle anonymous MAP_SHARED. Since we're treating it aslandley2005-12-071-1/+1
| | | | | | | read only data anyway, MAP_PRIVATE shouldn't make a major difference. git-svn-id: svn://busybox.net/trunk/busybox@12711 69ca8d6d-28ef-0310-b511-8ec308f3f277
* another more constvodz2005-10-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11897 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove debug warningvapier2005-10-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11728 69ca8d6d-28ef-0310-b511-8ec308f3f277
* reorder arches into alphabetical ordervapier2005-10-021-198/+201
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11727 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fixup whitespacevapier2005-10-021-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11726 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove all Elf32 hardcodes to make sure the elf handling is 64bit cleanvapier2005-10-021-47/+53
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11725 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svdavidson writes in Bug 459: add support for x86_64 relocations from ↵vapier2005-10-021-1/+72
| | | | | | modutils 2.4.27 git-svn-id: svn://busybox.net/trunk/busybox@11724 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change interface to bb_xasprintf() - more perfect for me.vodz2005-09-291-2/+2
| | | | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum git-svn-id: svn://busybox.net/trunk/busybox@11694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* initial ppc64 supportvapier2005-09-141-1/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11453 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Corrected the list of section names in add_ksymoops_symbols() sopkj2005-03-301-2/+2
| | | | | | | that the bss and sbss sections can be correctly identified. git-svn-id: svn://busybox.net/trunk/busybox@10062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* amd64 is rela, not relvapier2005-03-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* alpha/parisc supportvapier2004-12-261-2/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9620 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Based on patches from Mike Frysinger, add insmod support forandersen2004-09-021-74/+82
| | | | | | | | | | | | sparc and ia64 (itanium). Also, reorganize the insmod architecture support code to be alphasorted and less messy. Update the readme to list current insmod arch support. git-svn-id: svn://busybox.net/trunk/busybox@9197 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup some warningsandersen2004-08-281-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9180 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rodney Radford adding x86_64 support.andersen2004-08-191-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* new_process_module_arguments returns 0 on error and 1 if everything went oksandman2004-07-201-3/+3
| | | | | | | | somehow the ! got lost.. symptoms: modules could only be loaded _without_ parameters git-svn-id: svn://busybox.net/trunk/busybox@8986 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix a stupid compile error when CONFIG_FEATURE_INSMOD_VERSION_CHECKINGandersen2004-06-221-4/+4
| | | | | | | is disabled git-svn-id: svn://busybox.net/trunk/busybox@8921 69ca8d6d-28ef-0310-b511-8ec308f3f277
* kill off insmod support for older pre 2.1 Linux kernels,andersen2004-06-221-514/+20
| | | | | | | | which are not supported with the current busybox 1.0 release -Erik git-svn-id: svn://busybox.net/trunk/busybox@8917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* oopsandersen2004-05-261-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8878 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yoshinori Sato:andersen2004-05-261-3/+47
| | | | | | | | | | | This patch is uClinux-2.4.x for H8/300 module support. please apply. -- Yoshinori Sato git-svn-id: svn://busybox.net/trunk/busybox@8873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Christian Grigis, christian.grigis at smartdata dot ch writes:andersen2004-04-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hello everyone, Busybox's insmod fails to locate a module when that module is the only one existing in the /lib/modules directory (with a unique name). Example: # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o # insmod bios insmod: bios.o: no module by that name found # touch /lib/modules/dummy # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o /lib/modules/dummy # insmod bios Using /lib/modules/kernel/drivers/char/bios.o As long as there is another file in the /lib/modules directory, insmod finds it OK. I tracked the problem down to 'check_module_name_match()' in insmod.c: It returns TRUE when a match is found, and FALSE otherwise. In the case where there is only one module in the /lib/modules directory (or more that one module, but all with the same name), 'recursive_action()' will return TRUE and we end up on line 4196 in 'insmod.c' which returns an error. [The reason it works with more than one module with different names is that in this case there will always be one not matching, 'recursive_action()' will return FALSE and we end up in line 4189.] Now, from the implementation of 'recursive_action()' and from other usages of it (tar.c, etc.), it seems to me that FALSE should be returned to indicate that we want to stop the recursion, so TRUE and FALSE should be inverted in 'check_module_name_match()'. At the same time, 'recursive_action()' continues to recurse even after the recursive call has returned FALSE; again in my understanding and other usages of it, we can safely stop recursing at this point. Here is my patch against 1.00-pre8: git-svn-id: svn://busybox.net/trunk/busybox@8697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing ELFCLASSM for m68kandersen2004-03-191-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Only use R_68K_GOTOFF if it is definedandersen2004-03-191-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8646 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-34/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from OpenWrt.mjn32004-02-181-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix broken #elseandersen2004-01-051-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix debian bug #215612, insmod should be silent on requestbug12003-12-311-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8207 69ca8d6d-28ef-0310-b511-8ec308f3f277
* re-indentandersen2003-12-241-983/+984
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8179 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Woody Suwalski:andersen2003-12-191-31/+53
| | | | | | | | | | | | | | | | | | | | | | | | | Erik, I think we have met online some time ago when I was in Corel/Rebel Netwinder project.... Anyway, I would like to use BB on 2.6.0 initrd. 1.00-pre4 works OK, if insmod is actually presented with a full path to the module. Otherwise - problems (not to mention conflicts when 2.4 modutil is enabled) Here are some patches for insmod and modprobe which try to walk around the default ".o" module format for 2.2/2.4 modules (you have probably noticed it is now .ko in 2.6 ;-)) Trying to steal as little space as possible if 2.6 not enabled... The modprobe is still not perfect on 2.6 - seems to be jamming on some dependencies, but works with some (to be debugged). Anyway after the patches it at least tries to work.... Will there be a 1.00-pre5 coming any time soon? Thanks, Woody git-svn-id: svn://busybox.net/trunk/busybox@8133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update modutils with 2.6 module supportandersen2003-12-111-16/+111
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8068 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add (untested) support for cris, based on the (old) busybox insmodmjn32003-12-041-2/+27
| | | | | | | that axis distributes. git-svn-id: svn://busybox.net/trunk/busybox@8049 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do a better job of dealing with screwy s390 abi changesandersen2003-10-211-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ccording to this:andersen2003-10-201-3/+3
| | | | | | | | | http://sources.redhat.com/ml/binutils/2003-01/msg00290.html The name R_390_GOTOFF was changed to R_390_GOTOFF32. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7680 69ca8d6d-28ef-0310-b511-8ec308f3f277