From b84ae4398f90e0bda5b61cdf08cdb67ea840abe0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 15 Dec 2008 13:20:16 -0500 Subject: [PATCH] Make sure that one of the other_sect offsets is 0. This is a hack to work around the fact that our .fixup splitting algorithm is not correct when there are direct relocations (i.e. not from __ex_table) into .fixup. In recent amd64 kernels, there are direct relocations to the bad_from_user symbol at the start of the .fixup section in arch/x86/lib/copy_user_64.S, and no indirect relocations to that same place. Signed-off-by: Tim Abbott --- objmanip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/objmanip.c b/objmanip.c index 3195a54..ce35093 100644 --- a/objmanip.c +++ b/objmanip.c @@ -2883,6 +2883,7 @@ static void initialize_table_spans(struct superbfd *sbfd, if (other_sect == NULL) return; + *vec_grow(&offsets, 1) = 0; qsort(offsets.data, offsets.size, sizeof(*offsets.data), compare_ulongs); *vec_grow(&offsets, 1) = other_ss->contents.size; -- 2.11.4.GIT