Mail Archives: cygwin/2001/09/20/11:11:27
Hmmm. running 'ld --help' spews out a whole bunch of
stuff on my terminal, and one of the options I see is
--demangle. So, adding the option ' -Wl,--demangle' would
pass that through from gcc/g++ on down to ld.
What I don't know is if --demangle will give you the functionallity
you are desiring.
On Thu, 20 Sep 2001 13:24:15 GMT, Sune Foldager wrote:
>Ok here is a follow-up on my own mail ;)
>
>It's turns out that the LD in cygwin is less resistent to weird comman line
>options. It wants -oformat=binary or --oformat binary. Not -oformat binary.
>The Linux ld doesn't care. However, here is my extended problem:
>
>Back when I compilled the kernel under DOS using djgpp, the compiller mangled
>the names as usual, so a prototype of:
>void disable();
>Would make the linker expect '_disable' to be defined somewhere. When migrating
>to Linux, I had to change all my assembler files since the Linux gcc _didn't_
>mangle the name, and the linker will look for 'disable' instead. The extended
>problem then is, that cygwin behaves like djgpp, ie. mangles the names. So
>far I have not been able to find anywhere in djgpp, gcc on either Linux or
>cygwin, to change the name mangling behavior. Nor is the behaviour documented
>anywhere it seems. Anyone can help? :)
>
>Kind regards,
>Sune Foldager.
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -