From c683dbd6e4da3a6aba22779c99810f8684c38208 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 17 Apr 2019 21:29:23 -0700 Subject: config.def.h: Add note about crtbegin.o and crtend.o --- config.def.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.def.h b/config.def.h index c8304df..a43260b 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,13 @@ #define DYNAMICLINKER "/lib64/ld-linux-x86-64.so.2" #endif +/* +glibc systems might need crtbegin.o at the end of `startfiles` and +crtend.o at the beginning of `endfiles`. These are provided by gcc and +not usually in the linker's default search path, so we just leave it to +the user to configure as needed. +*/ + static char *startfiles[] = { "-l", ":crt1.o", "-l", ":crti.o", -- cgit v1.2.3