Re: How to fix a module's Section mismatch warnings?

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

 



Hi Bob..

On Sat, Jul 17, 2010 at 02:08, Bob Beers <bob.beers@xxxxxxxxx> wrote:
> Hmmm,  It looks lilke a pretty standard Makefile:
>
> -----------------------8<-------------------
> CC=gcc
> VER=`uname -r`
> SRCREF?=/lib/modules/$(VER)/build
> INSTALLDIR=/lib/modules/$(VER)/kernel/net


It's something like what you see in arch/avr32/kernel/vmlinux.lds.S.
To quote some:
SECTIONS
{
        . = CONFIG_ENTRY_ADDRESS;
        .init           : AT(ADDR(.init) - LOAD_OFFSET) {
                _stext = .;
                __init_begin = .;
                        _sinittext = .;
                        *(.text.reset)
                        INIT_TEXT
                        /*
                         * .exit.text is discarded at runtime, not
                         * link time, to deal with references from
                         * __bug_table
                         */
                        EXIT_TEXT




-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux