"causes a section type conflict"

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

 



Hi

I have problem with GNU linker.

I will show you simple example how it appears. But basically if I have set
one function to specified memory section and try to call function with
string parameter. then linker says "causes a section type conflict".


char FooBar(const char *)  __attribute__((section(".defined_section")));
void TestFunction(void)  __attribute__((section(".defined_section")));

char FooBar(const char * s)
{
    if(s) return 1;
    else return 0;
}

void TestFunction(void)
{
    FooBar(1);      // This works fine
    FooBar("1")    // This doesnt work, linker script says: " TestFunction
causes a section type conflict"
}


So what is that error message? Google didnt find any solve for this.
-- 
View this message in context: http://old.nabble.com/%22causes-a-section-type-conflict%22-tp27847975p27847975.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux