Date: Wed, 15 Dec 2010 20:58:07 +0530 From: "Jayachandran C." <c.jayachandran@gmail.com> To: freebsd-mips@freebsd.org, gonzo@freebsd.org Subject: Cleanup for ELF trampoline code. Message-ID: <AANLkTimX_zdB7=OUAyjmQEcfK8V_fe0qZj9M7HDMq3g4@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--00151749f6a28a56db0497749548 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've attached a patch which cleans up sys/conf/Makefile.mips a bit, the changes are: - don't use -shared flag for the trampoline binary, now we generate a shared obj, elf executable would be a better choice. - don't generate tmphack.S, =A0move the code to sys/mips/mips/inckern.S - don't generate opt_kernname.h, pass KERNNAME with -D Please let me know your comments. I'm not sure which other platforms use the elf trampoline code, let me know if this will break any platform. Thanks, JC --00151749f6a28a56db0497749548 Content-Type: text/x-patch; charset=US-ASCII; name="tramp-cleanup.patch" Content-Disposition: attachment; filename="tramp-cleanup.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ghqdgz720 SW5kZXg6IHN5cy9jb25mL01ha2VmaWxlLm1pcHMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2NvbmYvTWFr ZWZpbGUubWlwcwkocmV2aXNpb24gMjE2MzE4KQorKysgc3lzL2NvbmYvTWFrZWZpbGUubWlwcwko d29ya2luZyBjb3B5KQpAQCAtNTAsNiArNTAsNyBAQAogIyBpcyBleHRyZW1lbHkgcG9vciwgYXMg d2VsbCBhcyAtbW5vLWFiaWNhbGxzIHRvIGZvcmNlIG5vIEFCSSB1c2FnZS4KIENGTEFHUys9JHtF WFRSQV9GTEFHU30gJChBUkNIX0ZMQUdTKQogSEFDS19FWFRSQV9GTEFHUys9JHtFWFRSQV9GTEFH U30gJChBUkNIX0ZMQUdTKQorVFJBTVBfRVhUUkFfRkxBR1M9JHtFWFRSQV9GTEFHU30gJChBUkNI X0ZM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KIF9fRkJTRElE KCIkRnJlZUJTRCQiKQorCitFTlRSWShfc3RhcnQpCisJUFRSX0xBCXQwLCBrZXJuZWxfZW5kCisJ bW92ZQlzcCwgdDAKKwlhZGQJc3AsIDB4MjAwMAorCWFuZAlzcCwgfjB4NworCVBUUl9MQQl0MCwg X3N0YXJ0QworCWoJdDAKKwlub3AKK0VORChfc3RhcnQpCisKKyNpZm5kZWYgS0VSTk5BTUUKKyNl cnJvciBOZWVkIGEga2VybmVsIG5hbWUgaGVyZQorI2VuZGlmCisKIC5zZWN0aW9uICIucmVhbF9r ZXJuZWwiLCJhdyIKIC5nbG9ibCBrZXJuZWxfc3RhcnQ7CiBrZXJuZWxfc3RhcnQ6CkluZGV4OiBz eXMvbWlwcy9taXBzL2VsZl90cmFtcG9saW5lLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL21pcHMvbWlw cy9lbGZfdHJhbXBvbGluZS5jCShyZXZpc2lvbiAyMTYzMTgpCisrKyBzeXMvbWlwcy9taXBzL2Vs Zl90cmFtcG9saW5lLmMJKHdvcmtpbmcgY29weSkKQEAgLTQyLDggKzQyLDExIEBACiAgKiBuZWVk IHRvIGluY2x1ZGUgb3B0X2dsb2JhbC5oIG1hbnVhbGx5LgogICovCiAjaW5jbHVkZSAib3B0X2ds b2JhbC5oIgotI2luY2x1ZGUgIm9wdF9rZXJubmFtZS5oIgogCisjaWZuZGVmIEtFUk5OQU1FCisj ZXJyb3IgS2VybmVsIG5hbWUgbm90IHByb3ZpZGVkCisjZW5kaWYKKwogZXh0ZXJuIGNoYXIga2Vy bmVsX3N0YXJ0W107CiBleHRlcm4gY2hhciBrZXJuZWxfZW5kW107CiAK --00151749f6a28a56db0497749548--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimX_zdB7=OUAyjmQEcfK8V_fe0qZj9M7HDMq3g4>