EmbDev.net

Forum: ARM programming with GCC/GNU tools How to remove _impure_ptr & impure_data from .data section

Author: Jagan teki (402jagan)
Posted on:

Hi,

I have a problem with _impure_ptr & impure_data reentrent stubs.
I am using arm-linux-eabi compiler for my .c files.

Even though I haven't use -DREENTRANT_SYSCALLS_PROVIDED on my CFLAGS, I
was
able to see the _impure_ptr & impure_data on my object file.

Those two funcs[_impure_ptr & impure_data] takes too memory on my .data
section.

Could any one help me out how can i remove them from obj, so-that i can
achieve optimum size on my binary..

Regards,
Jagan.
Author: gjlayde (Guest)
Posted on:

These objects com from the libraray and thus won't be affected by
command line option.

If the library was built with -ffunction-sections, -fdata-sections or on
object bases, then cyou can kick out the object in your linker script.

Read the map file to see where the objects live and if their place is
unique, factor it out.
Author: Jagan teki (402jagan)
Posted on:

Hi,

On my obj dump file I have funcs in .data sections like

000123e40 <_impure_ptr>:
 ...................
000123e48 <impure_data>:
 ...............

How can factor it out, can i use any CFLAG while compilation. or?

Regards,
Jagan

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]






webmaster@embdev.netContactAdvertising on EmbDev.net