Hello, I've tried to build OpenAFS-1.4.12 last week for Linux on s390x and the build failed with this error:
`savecontext' referenced in section `.text' of /usr/src/packages/BUILD/openafs-1.4.12/lib/liblwp.a(lwp.o): defined in discarded section `.note.GNU-stack' of /usr/src/packages/BUILD/openafs-1.4.12/lib/liblwp.a(process.o) After some investigations I've found out that the ELF-Section '.note.GNU-stack' must not contain anything (size=0) but is meant as a notification to activate some special memory protection mechanisms against stack overflows or something (I've found some details here: http://www.gentoo.org/proj/en/hardened/gnu-stack.xml). At the moment, the 'savecontext' label is placed into the '.note.GNU-stack' section (in the readelf output the section has a length of 0x90 bytes) and it seems this section is removed somewhere with its contents thus causing the above error. Could you change the file src/lwp/process.s390x.s such that the marker for the '.note.GNU-stack' is at the very end of that assembly source? It should be made sure that the symbol 'savecontext' won't be part of the '.note.GNU-stack' sections as this is a notifier only and it seems some other "intelligent" tools just remove the section. And it stroke me that the C-Compiler generates the .section statement with the keyword @progbits instead of %progbits. After moving the .section statement to the bottom of the file and replacing the '%' character with '@' the code compiles through on Novell-SLES11. Mit freundlichen Grüßen / Kind regards Carsten Jacobi Millicode Developer IBM Systems &Technology Group, Systems Software Development / FW Processor Firmware Entwicklung -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Schönaicher Str. 220 71032 Böblingen Phone: +49-7031-16-4468 (*120 4468) E-Mail: [email protected] -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294 _______________________________________________ OpenAFS-devel mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-devel
