Sort segments before emitting them
authorH. Peter Anvin <hpa@zytor.com>
Fri, 4 Jan 2008 21:03:20 +0000 (13:03 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 4 Jan 2008 21:03:20 +0000 (13:03 -0800)
commit3778c8c4f0e4857ead4b64e08b75b305d305487b
tree592bd162b20f045dc0b38135d4a3797df2d39db4
parent0686e9cf48dc49ee7ffc9d6ee3256fc9cede65b4
Sort segments before emitting them

Sort segments in address order, to be nice to the loader.
Furthermore, this paves way for eventually issuing single PHDRs for
adjacent sections.
Makefile
elf.c
segment.c [new file with mode: 0644]
segment.h