[Differential] [Request, 3 lines] D1543: crunchide: Correct 64-bit section header offset
emaste created this revision. emaste added a subscriber: freebsd-toolchain. REVISION SUMMARY For 64-bit binaries the Elf_Ehdr e_shoff is at offset 40, not 44. Instead of using an incorrect hardcoded offset, let the compiler figure it out for us with offsetof(). REVISION DETAIL https://reviews.freebsd.org/D1543 AFFECTED FILES usr.sbin/crunch/crunchide/exec_elf32.c To: emaste Cc: freebsd-toolchain ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org
[Differential] [Updated] D1543: crunchide: Correct 64-bit section header offset
emaste added a reviewer: pfg. REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg Cc: freebsd-toolchain ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org
[Differential] [Accepted] D1543: crunchide: Correct 64-bit section header offset
imp accepted this revision. imp added a reviewer: imp. This revision is now accepted and ready to land. REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg, imp Cc: freebsd-toolchain ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org
[Differential] [Closed] D1543: crunchide: Correct 64-bit section header offset
emaste closed this revision. emaste added a comment. Committed as rS277259 REVISION DETAIL https://reviews.freebsd.org/D1543 To: emaste, pfg, imp Cc: freebsd-toolchain ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org
Re: Installing openssl without gcc or binutils dependents
On Sat, 17 Jan 2015 05:05:48 +1100 Dewayne Geraghty dewayne.gerag...@heuristicsystems.com.au wrote: I would appreciate advise on the best approach to install openssl that has been built with gcc48 without needing to install gcc and binutils into the target machine? Background Attempting to run sshd or openssl resulted in signal 4, illegal instruction. The target systems are i386 boxes running the VIA C3 chipset using 10.1 Stable and packages built from svnlite update of ports from 2014-12-30. The suspect file is libcrypto.so.8. All systems are built using clang and custom compiler directives, in this case, -march=c3-2 -mtune=c3-2 and other attempts of building used CPUTYPE=c3-2 which generated the same signal 4 when run on the target platform; march=pentium3 had same result. The build occurs within an i386 jail on an amd64 FreeBSD 10.1 Stable, base system. Solution Inserted into /usr/ports/security/openssl/Makefile USE_GCC=yes resulted in a successful installation and running of sshd and curl which was the objective. However the openssl now has a dependency on gcc48 and binutils, which wont fit into the embedded image of 64MB (and isn't needed) I would prefer to use pkg tools to install applications rather than the crude workaround of tar -xpPf /kits/openssl-1.0.1_16.txz /usr/local/bin /usr/local/lib I suspect something in /usr/ports/Mk would need a flag ?? Advise appreciated... Kind regards, Dewayne. PS Fortunate aside, geom_eli only requires openssl header files, otherwise the base system would also require gcc48 for these target machines I'm sure toolchain@ would want to know what the faulting instruction is. Do you have a core dump that you can examine? -march=c3-2 enables SSE instructions. Are you sure your chip supports that? Maybe you need -march=c3. ___ freebsd-toolchain@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to freebsd-toolchain-unsubscr...@freebsd.org