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

von Jagan t. (402jagan)

Rate this post
0 useful
not useful

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 
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

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


von gjlayde (Guest)

Rate this post
0 useful
not useful
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.

von Jagan t. (402jagan)

Rate this post
0 useful
not useful

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?



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]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.