Hello, We use gcc for all our Software projects. Now we have a question about the sections, speziell the .rodata section. In every bin file there are 1024 Byte rodata sections, which are not linked to any code. This sections may use in total 8744 Byte, why? Why nee gcc this sections? Can we disable the generation of these nasty code. We have not found any information about it. These are the flags wie have enabled to gcc 5.4: -finline-small-functions -ffreestanding -fshort-enums -ffunction-sections -fdata-sections -ftree-vectorize -fopt-info-vec -ffast-math -fsigned-char -flto=jobserver -fwhole-program -fuse-linker-plugin -ffat-lto-objects -fno-hosted -fno-builtin -fno-exceptions -fno-unwind-tables -O2 -nostdlib -nostartfiles -pipe -std=gnu11 -Wall -Wextra -Wno-comment -Wstack-usage=$(IDE__GCC__LINKER__STACK__SVC_SIZE) -Wno-packed-bitfield-compat -Wl,-gc-sections -Wl,--strip-debug -Wl,--entry=antProcessor_HardwareBootEntry -Wl,-M -Wl,--cref -Wl,--print-gc-sections -Wl,--defsym,linker__cmd__stack__svc_size=$(IDE__GCC__LINKER__STACK__SVC_SIZE) -Wl,--defsym,linker__cmd__stack__irq_size=$(IDE__GCC__LINKER__STACK__IRQ_SIZE) -Wl,--defsym,linker__cmd__stack__fiq_size=$(IDE__GCC__LINKER__STACK__FIQ_SIZE) and here a dump of the linker output. *(.rodata.F*) .rodata.FT0 0x000000004020baa8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o .rodata.FT1 0x000000004020bea8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o .rodata.FT2 0x000000004020c2a8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o .rodata.FT3 0x000000004020c6a8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o .rodata.FSb.lto_priv.21 0x000000004020caa8 0x100 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans9.ltrans.o 0x000000004020caa8 FSb.lto_priv.21 *(.rodata.R*) .rodata.RT1.lto_priv.23 0x000000004020cba8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o 0x000000004020cba8 RT1.lto_priv.23 .rodata.RT0.lto_priv.22 0x000000004020cfa8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o 0x000000004020cfa8 RT0.lto_priv.22 .rodata.RT3.lto_priv.25 0x000000004020d3a8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o 0x000000004020d3a8 RT3.lto_priv.25 .rodata.RT2.lto_priv.24 0x000000004020d7a8 0x400 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o 0x000000004020d7a8 RT2.lto_priv.24 .rodata.RSb 0x000000004020dba8 0x100 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans7.ltrans.o .rodata.RCON 0x000000004020dca8 0x28 /var/folders/50/cy9c9gnn2rb171glx1rsrq3w0000gn/T//ccD2LgID.ltrans9.ltrans.o Thorsten Czujack, CEO, ANT-Solutions GmbH
Attachment:
smime.p7s
Description: S/MIME cryptographic signature