GCC Ident

OP #1174485
Hi!

I am searching for some space in Flash, and I the following is realised:
 .comment       0x00000000       0x1b
../lib/gcc/arm-elf/4.1.1/crtbegin.o
 .comment       0x00000036       0x1b
../lib/gcc/arm-elf/4.1.1/../../../../arm-
...

there are many object files containing the text "GCC: (GNU) 4.1.1
(WinARM)"

How can I disable it?

(I use gcc option -fno-ident in my sources.)

Thanks,
Ádám
Ádám Kovács wrote:
> Hi!
>
> I am searching for some space in Flash, and I the following is realised:
>  .comment       0x00000000       0x1b
> ../lib/gcc/arm-elf/4.1.1/crtbegin.o
>  .comment       0x00000036       0x1b
> ../lib/gcc/arm-elf/4.1.1/../../../../arm-
> ...
I have no idea what that means or where you got it from. What about it!?
Tell is what or where it is so we might interepret what you are
concerned about.

>
> there are many object files containing the text "GCC: (GNU) 4.1.1
> (WinARM)"
>
What appears in an object file and what appears in the binary are two
different things. Some information is there to help the linker and
debugger and are not incorporated into the ROM image. If you want to
find out what is where and how much space it takes, generate a link map
when you execute the linker.
OP
Clifford Slocombe wrote:
> Ádám Kovács wrote:
>> Hi!
>>
>> I am searching for some space in Flash, and I the following is realised:
>>  .comment       0x00000000       0x1b ../lib/gcc/arm-elf/4.1.1/crtbegin.o
>>  .comment       0x00000036       0x1b ../lib/gcc/arm-elf/4.1.1/../../../../arm-
>> ...
> I have no idea what that means or where you got it from. What about it!?
> Tell is what or where it is so we might interepret what you are
> concerned about.

Sorry there are lines from the *.map file.

>
>>
>> there are many object files containing the text "GCC: (GNU) 4.1.1
>> (WinARM)"
>>
> What appears in an object file and what appears in the binary are two
> different things. Some information is there to help the linker and
> debugger and are not incorporated into the ROM image. If you want to
> find out what is where and how much space it takes, generate a link map
> when you execute the linker.

You have right, I changed the linker script and the .comment section
will not appear in the binary.
(My first idea was to recompile the libc and the *.o-s with -fno-ident
option.)

Reply

A question of your own? This thread is over 17 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.