finally a tool that helps me figure out what ld is doing, wish i knew about this 5 years ago https://bnikolic.co.uk/blog/linux-ld-debug.html