https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95112

            Bug ID: 95112
           Summary: i386 procedures have prolog endbr32
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: akobets at mail dot ru
  Target Milestone: ---

gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu1)

Test file:
===============
void test()
{
}
===============

Buld:
i686-linux-gnu-gcc -c -fno-PIC -mno-mmx -mno-sse -O2 -fomit-frame-pointer
-ffreestanding -fno-stack-protector --no-exceptions test.c

Result:
i686-linux-gnu-objdump -d test.o

test.o:     file format elf32-i386


disassembling section .text:

00000000 <test>:
   0:   f3 0f 1e fb             endbr32 
   4:   c3                      ret    
==============
Please help me find way to build clear code.
__attribute__((naked)) do not resolve problem.

Reply via email to