From 2d0290debf28d9fddd3f1807fe12b1c64f96ab23 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 18 Feb 2016 04:13:05 +0000 Subject: fix regression in SH/FDPIC dynamic linker the dynamic linker was found to hang when used as the PT_INTERP, but not when invoked as a command. the mechanism of this failure was not determined, but the cause is clear: commit 5552ce52000855906a5cb4f08f2e456573cca51f removed the SHARED macro, but arch/sh/crt_arch.h is still using it to choose the right form of the crt/ldso entry point code. moving the forced definition from rcrt1.c to dlstart.c restores the old behavior. eventually the logic should be changed to fully remove the SHARED macro or at least rename it to something more reasonable. --- crt/rcrt1.c | 1 - 1 file changed, 1 deletion(-) (limited to 'crt') diff --git a/crt/rcrt1.c b/crt/rcrt1.c index e763d0ab..be017153 100644 --- a/crt/rcrt1.c +++ b/crt/rcrt1.c @@ -1,4 +1,3 @@ -#define SHARED #define START "_start" #define _dlstart_c _start_c #include "../ldso/dlstart.c" -- cgit v1.2.1