According to Bendersky:
Now, with gcc2.8.1 the error is the following: crtfgo32.c: undefined reference to `__EH_FRAME_BEGIN__'
[...]
I've deleted all the files in gcc2721b.mft, and unpacked the gcc2.8.1, and I still get the same error. Should I try deleting and unpacking again each of the mft files?
Maybe, but I am not sure that this will have any effect ... :-(
Let's look at our `djgpp.djl':
8< -------------------------------------
OUTPUT_FORMAT("coff-go32-exe") ENTRY(start) SECTIONS { .text 0x1000+SIZEOF_HEADERS : { *(.text) etext = . ; _etext = .; . = ALIGN(0x200); } .data ALIGN(0x200) : { djgpp_first_ctor = . ; *(.ctor) djgpp_last_ctor = . ; djgpp_first_dtor = . ; *(.dtor) djgpp_last_dtor = . ; *(.data) *(.gcc_exc) ___EH_FRAME_BEGIN__ = . ; *(.eh_fram) ___EH_FRAME_END__ = . ; LONG(0) edata = . ; _edata = .; . = ALIGN(0x200); } .bss SIZEOF(.data) + ADDR(.data) : { _object.2 = . ; . += 24 ; *(.bss) *(COMMON) end = . ; _end = .; . = ALIGN(0x200); } }
8< -------------------------------------
Please check whether this matches your version in the /djgpp/lib/gcc-lib/djgpp/2.81/ directory.
I do not understand what all this means, but maybe we must replace `.gcc_exe' with `.gpc_exe' here? But why does it work for me then?
Confused,
Peter