https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109286
Bug ID: 109286 Summary: Assembler warnings about .init/.fini sections defined without attributes Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: inline-asm, internal-improvement Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: jdx at o2 dot pl Target Milestone: --- Host: x86_64-w64-mingw32 Target: h8300-elf Created attachment 54757 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54757&action=edit crtbegin.S For every possible libgcc variant (H8/300H, H8S, etc) I get following warnings: /d/Works/xcomp/gcc-build/./gcc/xgcc -B/d/Works/xcomp/gcc-build/./gcc/ -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -isystem /d/Works/xcomp/sysroot/h8300-elf/include -ms -O2 -isystem /d/Works/xcomp/sysroot/h8300-elf/include -DIN_GCC -fPIC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -o crtbegin.o -MT crtbegin.o -MD -MP -MF crtbegin.dep -c ../../../../../gcc/libgcc/crtstuff.c -DCRT_BEGIN R:\Users\jdx\AppData\Local\Temp\ccvtc9ju.s: Assembler messages: R:\Users\jdx\AppData\Local\Temp\ccvtc9ju.s:101: Warning: new section '.fini' defined without attributes - this might cause problems R:\Users\jdx\AppData\Local\Temp\ccvtc9ju.s:124: Warning: new section '.init' defined without attributes - this might cause problems /d/Works/xcomp/gcc-build/./gcc/xgcc -B/d/Works/xcomp/gcc-build/./gcc/ -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -isystem /d/Works/xcomp/sysroot/h8300-elf/include -ms -O2 -isystem /d/Works/xcomp/sysroot/h8300-elf/include -DIN_GCC -fPIC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -o crtend.o -MT crtend.o -MD -MP -MF crtend.dep -c ../../../../../gcc/libgcc/crtstuff.c -DCRT_END R:\Users\jdx\AppData\Local\Temp\ccbb20TH.s: Assembler messages: R:\Users\jdx\AppData\Local\Temp\ccbb20TH.s:48: Warning: new section '.init' defined without attributes - this might cause problems In the attachement there are crtbegin.S and crtend.S created "manually" with /d/Works/xcomp/gcc-build/./gcc/xgcc -B/d/Works/xcomp/gcc-build/./gcc/ -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -isystem /d/Works/xcomp/sysroot/h8300-elf/include -ms -O2 -isystem /d/Works/xcomp/sysroot/h8300-elf/include -DIN_GCC -fPIC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -S -o crtbegin.S -MT crtbegin.o -MD -MP -MF crtbegin.dep ../../../../../gcc/libgcc/crtstuff.c -DCRT_BEGIN and /d/Works/xcomp/gcc-build/./gcc/xgcc -B/d/Works/xcomp/gcc-build/./gcc/ -B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem /usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include -isystem /d/Works/xcomp/sysroot/h8300-elf/include -ms -O2 -isystem /d/Works/xcomp/sysroot/h8300-elf/include -DIN_GCC -fPIC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/. -I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include -S -o crtend.S -MT crtend.o -MD -MP -MF crtend.dep ../../../../../gcc/libgcc/crtstuff.c -DCRT_END