How to remove _impure_ptr & impure_data from .data section

OP #2514753
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.
Guest #2515713
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.
OP #2516032
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

A question of your own? This thread is over 14 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.