Author Topic: how to build project into seperated section  (Read 2461 times)

Offline jeorama

  • Multiple posting newcomer
  • *
  • Posts: 12
how to build project into seperated section
« on: June 13, 2010, 02:01:00 pm »
I use a link file as below,it is ok in keil,but in codeblock,there are always errors "multiple definition of `XXXX' ":

SECTIONS
{
        . = 0xD8000000;
        __start_ipl_startup = .;
        .iplsec1 : { ipl_startup.o ipl_startup2.o(.text .rodata .data .bss) }
        __end_ipl_startup = .;

        . = 0xA0000200;
        __start_ipl_main = .;
        .iplsec2 : { mxc_ipl.o mx27nfc.o (.text .rodata .data .bss) }
        __end_ipl_main = .;

        . = 0xA1000000;
        __start_spl_main = .;
        .spl : {spl_boot.o nand_driver.o spl_jump.o(.text .rodata .data .bss) }
        __end_spl_main = .;
}


oh, it is due the compiler which I changed from arm gcc to codesourcery gcc, the later accept  *ipl_startup.o  .... instead of  ipl_startup.o....
« Last Edit: June 13, 2010, 03:43:53 pm by jeorama »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how to build project into seperated section
« Reply #1 on: June 13, 2010, 02:39:23 pm »
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

And please next time give us a bit more info, because we don't know your work environment at all...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]