Sections .hash and .gnu.hash are only created when CONFIG_PIE_BUILD
option is enabled. Drop these for the case CONFIG_PIE_BUILD is disabled.
[ agordeev: Reworded the commit message ]
Fixes: 778666df60f0 ("s390: compile relocatable kernel without -fPIE")
Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
        .dynstr ALIGN(8) : {
                *(.dynstr)
        }
-#endif
        .hash ALIGN(8) : {
                *(.hash)
        }
        .gnu.hash ALIGN(8) : {
                *(.gnu.hash)
        }
+#endif
 
        . = ALIGN(PAGE_SIZE);
        __init_end = .;         /* freed after init ends here */