EmbDev.net

Forum: ARM programming with GCC/GNU tools GCC Ident


Author: Ádám Kovács (akovacs)
Posted on:

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

Author: Clifford Slocombe (clifford)
Posted on:

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

Author: Ádám Kovács (akovacs)
Posted on:

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

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 useful
not useful
Ádám Kovács wrote:
> Clifford Slocombe wrote:
>
> Sorry there are lines from the *.map file.
>
Ah! that makes much more sense on one line! ;-)

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]




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.