loader btxldr: process all PT_LOAD segments, not just the first two
Update from FreeBSD:
With default settings GNU ld generates two PT_LOADs for loader.sym while
LLD generates three, because it creates a rodata segment. Previously
btxldr terminated phdr processing after two PT_LOADs. Remove the early
termination to process all PT_LOADs.
Since we build with GNU ld, the issue is not affecting our build at this time, but it is good cleanup for future in any case.
Updated by Electric Monk over 3 years ago
- % Done changed from 90 to 100
- Status changed from New to Closed
commit 92f29c4ad7c40b844424bb1858c06f2baea67ddd Author: Toomas Soome <email@example.com> Date: 2017-01-05T10:06:44.000Z 7695 loader btxldr: process all PT_LOAD segments, not just the first two Reviewed by: Rich Lowe <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Hans Rosenfeld <firstname.lastname@example.org>