https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119231
Bug ID: 119231 Summary: gcobol -static produces a dynamically linked executable Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- a.cob: ``` IDENTIFICATION DIVISION. PROGRAM-ID. CobolGreeting. *>Program to display COBOL greetings DATA DIVISION. WORKING-STORAGE SECTION. 01 IterNum PIC 9 VALUE 5. PROCEDURE DIVISION. BeginProgram. PERFORM DisplayGreeting IterNum TIMES. STOP RUN. DisplayGreeting. DISPLAY "Greetings from COBOL" ``` ``` $ gcobol a.cob -o a -static $ ./a Greetings from COBOL Greetings from COBOL Greetings from COBOL Greetings from COBOL Greetings from COBOL $ file ./a ./a: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, not stripped ```