public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* "causes a section type conflict"
@ 2010-03-10 10:36 Dukextra
  2010-03-10 16:39 ` Ian Lance Taylor
  0 siblings, 1 reply; 7+ messages in thread
From: Dukextra @ 2010-03-10 10:36 UTC (permalink / raw)
  To: gcc-help


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-25 13:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 10:36 "causes a section type conflict" Dukextra
2010-03-10 16:39 ` Ian Lance Taylor
2010-03-10 16:50   ` Axel Freyn
2010-03-11  5:13     ` Dukextra
2010-03-16 14:48       ` Ian Lance Taylor
2010-03-25 11:40         ` Dukextra
2010-03-25 15:34           ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).