I second this approach, also check with all the verbose flags enabled (eg. clang -v) to get a full list of the linking flags used.
One other thing you may want to try is writing a linker script manually. If you could provide the linker flags as mentioned elsewhere, that would be useful.
One other thing you may want to try is writing a linker script manually. If you could provide the linker flags as mentioned elsewhere, that would be useful.