Upon review with hpa the second pass issues with ld should be
gone if the section ranges and linker tables are used as the custom
linker script is not going to be relied upon for the alignment. The
2nd pass issue was due to the fact that the compiler and linker might
have different strategies for figuring what the proper alignment
should be, and there can be a disconnect between what the compiler
assumes and what the linker ends up also deciding to use.

By using section ranges and linker tables that disconnect is no longer
there, as we are relying on the compiler exclusively now for alignment.

Signed-off-by: Luis R. Rodriguez <>
3 files changed