using libm with relocated exception vector?

Jimmy Myhrman <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi,

I'm working with a proprietary mpc565 board that has a bootloader
occupying the first 64kB of memory. Therefore, the exception vector
and the user application are relocated to 0x00010000.

When writing applications for this board, a linker script is used that
tells the linker to put sections (.text, .intrpt and some others) at
0x00010000. No problems so far.

Until recently, the only library that has been needed is libc, but now
I'd like to be able to use math library as well. However, simply
passing "-lm" to gcc produces invalid object files since the math
library seems to want to place code in the exception vector at
0x00000000 rather than at 0x00010000.

Thus, my question to this list is how to place the code from libm in
the appropriate memory location? My guess would be that I need to know
what section the libm exception vector code is placed in and then use
the linker script to relocate that code, but I've yet to find out how
to do this.

The environment is GCC with newlib.

All help greatly appreciated. Thanks in advance!

--
Jimmy Myhrman
[email protected]


-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.