--- elflink.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/elflink.c +++ b/elflink.c @@ -622,6 +622,10 @@ static int verify_segment_layout(struct unsigned long prev_end = segs[i - 1].end; unsigned long start = segs[i].start; + /* Don't worry about consecutive normal page segments */ + if (!segs[i - 1].huge && !segs[i].huge) + continue; + /* Make sure alignment hasn't caused segments to overlap */ if (prev_end > start) { WARNING("Layout problem with segments %i and %i:\n\t"