Re: Modutils 2.5 change, start running this command now

From: Russell King (rmk@arm.linux.org.uk)
Date: Wed Oct 03 2001 - 03:17:02 EST


On Wed, Oct 03, 2001 at 02:36:24PM +1000, Keith Owens wrote:
> Either export the required symbols
> (remember to add the .o file to export-objs in the Makefile) or add
> EXPORT_NO_SYMBOLS; somewhere in the module (no change to Makefile).
>
> objdump -h `modprobe -l` | \
> awk '/file format/{file = $1}/__ksymtab/{file = ""}/\.comment/ && file != "" {print file}'

Sorry, your awk script is buggy - it doesn't take note of __ksymtab
after .comment:

# objdump -h /lib/modules/2.4.9-ac17/kernel/drivers/acorn/scsi/acornscsi_mod.o

/lib/modules/2.4.9-ac17/kernel/drivers/acorn/scsi/acornscsi_mod.o: file format elf32-littlearm

Sections:
Idx Name Size VMA LMA File off Algn
  0 .text 0000466c 00000000 00000000 00000034 2**2
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  1 .rodata 00000de6 00000000 00000000 000046a0 2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 .modinfo 00000028 00000000 00000000 00005488 2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .data 000000bc 00000000 00000000 000054b0 2**2
                  CONTENTS, ALLOC, LOAD, RELOC, DATA
  4 .bss 0000008c 00000000 00000000 0000556c 2**2
                  ALLOC
  5 .comment 00000026 00000000 00000000 0000556c 2**0
                  CONTENTS, READONLY
  6 __ksymtab 00000000 00000000 00000000 00005592 2**0
                  CONTENTS, READONLY

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:26 EST