diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-05-22 12:36:37 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-05-22 12:36:37 +0000 |
commit | aeea696ab0dbb8012b2dbb2b3f1b655ad02d0644 (patch) | |
tree | 78c6c5ed6a99bab568ec8dc919f14ac396850879 | |
parent | dev-libs/elfutils: remove mtrace (diff) | |
download | hardened-dev-aeea696ab0dbb8012b2dbb2b3f1b655ad02d0644.tar.gz hardened-dev-aeea696ab0dbb8012b2dbb2b3f1b655ad02d0644.tar.bz2 hardened-dev-aeea696ab0dbb8012b2dbb2b3f1b655ad02d0644.zip |
dev-libs/elfutils: remove profiling support
-rw-r--r-- | dev-libs/elfutils/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/elfutils/elfutils-0.155.ebuild | 1 | ||||
-rw-r--r-- | dev-libs/elfutils/files/elfutils-0.155-remove-profiling-support.patch | 145 |
3 files changed, 148 insertions, 1 deletions
diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest index bf95d6d6..0eb68815 100644 --- a/dev-libs/elfutils/Manifest +++ b/dev-libs/elfutils/Manifest @@ -3,8 +3,9 @@ AUX elfutils-0.155-fallback-assert.patch 1042 SHA256 0c2f8805ef0499f3c928f4aeffe AUX elfutils-0.155-fallback-mempcpy.patch 2131 SHA256 098a6d87b4a4ad9a2f7ae80a147cca18c007d9a24e2b53b7b5ca55b88f7625ea SHA512 02ae4978bcbe54083f7936a6db663e02ea1dbfa4e79aa6303dc2bd5359329ad4b747d5a22a34f843f7c84be0389be46a77fe21e1afec4f68373de4e1cfa2bc9c WHIRLPOOL a02eb022b6ebd2b7a5422880e72465f1d7b667dd9adc085108649c38544aade7b1060ff3e2f03482cb5da19321059edf88bae648300797ba9f1ae04283808438 AUX elfutils-0.155-link-argp-standalone.patch 2853 SHA256 686aef2228c224088b3e394189fd336dd66aad52b6e8c871ab4e54cbc8cee32d SHA512 3c01dcf7556c11ba26fa311dd9ab0f933fb51aabb24b2a4ba5f400f40b2db2709cf4bd66253a514ae97abb09e94f2853ba1b0cbf737943eab017effa3b5fcd2b WHIRLPOOL 7732a50ce146c9006fc008924dbfb00e3798d58f79ab944262f0798750301089840274b2205a7cf1bf76192b45c099d4c0d5b2e032ed7fd2ea416bc9307dfb76 AUX elfutils-0.155-remove-mtrace.patch 6030 SHA256 8e717cfec369f15809697d6b6a7115bb576f6c8235635482cd298708991bd352 SHA512 91762f2a5ed3145b6d77fe93f2c38e5857e1bb4a91c5e19f02184df70f9330a881ec86989e4e48b49128fcd55c4f86b3123355a0800f9f4dcfc6de8adcc4c571 WHIRLPOOL 458289d453e0a551b9ac2236c011dc24563ad82d44e8fc558722ee4c1cbcbe1536eb1bd8beb0019ad5500896cdf5f91c1a4e9585a177f4f088cd5d2a7afcf922 +AUX elfutils-0.155-remove-profiling-support.patch 6649 SHA256 ff364df7c9cfc15f625509783ed3745be99fb9af94fd171e3eb1db0816ffd603 SHA512 f015b197f1ffa0c22232ce2655e77dcf2d19e6c4691632a4aaebbaefd7ec9d0269347951dda694abb1471eca7cda4fc0dca6a9708d651764e889f0f032c8e6c9 WHIRLPOOL ea4f1c10a3e17a2ba259d462caf5dd0a2fbec6e9b4068d17f88d44f81196867b505bdcbefdf0e30221b6b730e3cc189f2f1e4536ecd421ad372ce0d81fc8b210 DIST elfutils-0.155-portability.patch 57540 SHA256 b101c8360abc746a5a66cf0549e0d6259fa3cd78a1314e857e3962983a491171 SHA512 7a498f28134134ce81e25f39ea42ce36fac7a2cae79f6b2eda9c7d384f6dfb2907a013b4800da36ba9ab6ad18fac63eacf8a5847cf94248962d5580650d4b501 WHIRLPOOL f69852a6281203bff90934cd1c21e7507da1c0c217f88e6c158b2e5a59fc685a813a8f5ae138004f674918c7787425ab625e454f323ee65563b4893a0c57131f DIST elfutils-0.155-robustify.patch 62788 SHA256 062a7940757aea1fedec4c9943bdd34b853c97458f229569777d65541b77c174 SHA512 d18fcdd6b57266805d3934ff07123b19f5da7df5ab72b8673d77e35929b34e14a33a08ec0940b06d763a0279d98d677892ccf89717bc995be6a839cab19acd97 WHIRLPOOL 30d3b3c96b03647dadb7860b15dc486147f20f6199fe4c7bb9b88c7fd20fa76d0fb3882e037caac54a40591f5aa9c155b6a86df16813542254dcbc2fc1cff86a DIST elfutils-0.155.tar.bz2 2477883 SHA256 68444a4526416ffd68852ec3c6a40ceddcca46538297322405319884c5d30ed8 SHA512 4f434c7a01c768df00499cac4e02c2316077eab9a6b6f0e6f3ce5194e6cfd2258fa30f9a163febce15278e1fbbbab9c7238c0cf56bf7dbcb5363b42a1a947b8e WHIRLPOOL 30647d492eff02c92ac1c7b0e9d5090cde3cbf4541bcc61fbc38f9fdd40ade08763e5e8ff23e0874f77955dcd71bd73e8b1e9f77460dd453c74fa1643efe0156 -EBUILD elfutils-0.155.ebuild 2641 SHA256 fe786b28d9101775eb5f83b94f0fdada4a333607043479fad799f9b32f30e087 SHA512 9ab722efa048849e11c018f80bc3a097b777d6bcd161d9f14446ca0bd44c476b1a007d8bfa60d3a08188393e826ccbec1237d158db2d74bb0f02e521bca39895 WHIRLPOOL e6c8acddadbdecca2856b677c9e17b3e4119eae6833f4d653f6b982c4f2c11077adb69462f753d24ceb842408dfbff36621d65ef2fa4245e15c7a2392ed6fc62 +EBUILD elfutils-0.155.ebuild 2706 SHA256 529c9a35a048b4f125741593b815625ce17bde0c36c7ba2e09830892cfa58623 SHA512 1dd7ff191ce4217e28f3d2f8bb92cf749281ec1eeb6a425e30ef3cbb99ecdb874d9de275eeb8e86296a3e372027991e256da376a9d35d602a728ed5d74a1ccb9 WHIRLPOOL 3a639e9a77516d16f33f777ca83023981eae079d0d6a5637d357c1843b4918e0d8b4df4e5b514ad73acd283b8b8dc6511520df7d39d32d82d72fda8fa14e57ec MISC metadata.xml 438 SHA256 33cbcbd727257fa6d03488d531c099d33f4c3e4db3cf3739d11d8d4cd8266b37 SHA512 e013123116aa3a3f00fa77cc3e9d18a5c1f481dd304ee6af6e77e3e5e44fb9e3f94ac542fc10fb0c59dea6699c15cce11b1513c061494919f1e821120fb162d9 WHIRLPOOL f07f16d5235c538cef44daca3210ad7374af35705b6562b9bb17b2a5532ba0ed6ea32d1d7f23e93c899e8868503f7a9f8994d2454ca144c45ae7e9317fb0cabd diff --git a/dev-libs/elfutils/elfutils-0.155.ebuild b/dev-libs/elfutils/elfutils-0.155.ebuild index 0e46d90b..4d94af8c 100644 --- a/dev-libs/elfutils/elfutils-0.155.ebuild +++ b/dev-libs/elfutils/elfutils-0.155.ebuild @@ -38,6 +38,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-0.155-fallback-assert.patch epatch "${FILESDIR}"/${PN}-0.155-link-argp-standalone.patch epatch "${FILESDIR}"/${PN}-0.155-remove-mtrace.patch + epatch "${FILESDIR}"/${PN}-0.155-remove-profiling-support.patch eautoreconf sed -i -e 's:-Werror::g' $(find -name Makefile.in) || die diff --git a/dev-libs/elfutils/files/elfutils-0.155-remove-profiling-support.patch b/dev-libs/elfutils/files/elfutils-0.155-remove-profiling-support.patch new file mode 100644 index 00000000..f97682f9 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.155-remove-profiling-support.patch @@ -0,0 +1,145 @@ +diff -Naur elfutils-0.155.orig/src/ld.h elfutils-0.155/src/ld.h +--- elfutils-0.155.orig/src/ld.h 2012-08-27 18:29:31.000000000 +0000 ++++ elfutils-0.155/src/ld.h 2013-05-22 12:21:43.171830137 +0000 +@@ -291,7 +291,7 @@ + const char **(*lib_extensions) (struct ld_state *) + __attribute__ ((__const__)); + #define LIB_EXTENSION(state) \ +- DL_CALL_FCT ((state)->callbacks.lib_extensions, (state)) ++ ((state)->callbacks.lib_extensions)(state) + + /* Process the given file. If the file is not yet open, open it. + The first parameter is a file descriptor for the file which can +@@ -302,12 +302,12 @@ + int (*file_process) (int fd, struct usedfiles *, struct ld_state *, + struct usedfiles **); + #define FILE_PROCESS(fd, file, state, nextp) \ +- DL_CALL_FCT ((state)->callbacks.file_process, (fd, file, state, nextp)) ++ ((state)->callbacks.file_process)(fd, file, state, nextp) + + /* Close the given file. */ + int (*file_close) (struct usedfiles *, struct ld_state *); + #define FILE_CLOSE(file, state) \ +- DL_CALL_FCT ((state)->callbacks.file_close, (file, state)) ++ ((state)->callbacks.file_close)(file, state) + + /* Create the output sections now. This requires knowledge about + all the sections we will need. It may be necessary to sort the +@@ -319,99 +319,97 @@ + output routines. */ + void (*create_sections) (struct ld_state *); + #define CREATE_SECTIONS(state) \ +- DL_CALL_FCT ((state)->callbacks.create_sections, (state)) ++ ((state)->callbacks.create_sections)(state) + + /* Determine whether we have any non-weak unresolved references left. */ + int (*flag_unresolved) (struct ld_state *); + #define FLAG_UNRESOLVED(state) \ +- DL_CALL_FCT ((state)->callbacks.flag_unresolved, (state)) ++ ((state)->callbacks.flag_unresolved)(state) + + /* Create the sections which are generated by the linker and are not + present in the input file. */ + void (*generate_sections) (struct ld_state *); + #define GENERATE_SECTIONS(state) \ +- DL_CALL_FCT ((state)->callbacks.generate_sections, (state)) ++ ((state)->callbacks.generate_sections)(state) + + /* Open the output file. The file name is given or "a.out". We + create as much of the ELF structure as possible. */ + int (*open_outfile) (struct ld_state *, int, int, int); + #define OPEN_OUTFILE(state, machine, class, data) \ +- DL_CALL_FCT ((state)->callbacks.open_outfile, (state, machine, class, data)) ++ ((state)->callbacks.open_outfile)(state, machine, class, data) + + /* Create the data for the output file. */ + int (*create_outfile) (struct ld_state *); + #define CREATE_OUTFILE(state) \ +- DL_CALL_FCT ((state)->callbacks.create_outfile, (state)) ++ ((state)->callbacks.create_outfile)(state) + + /* Process a relocation section. */ + void (*relocate_section) (struct ld_state *, Elf_Scn *, struct scninfo *, + const Elf32_Word *); + #define RELOCATE_SECTION(state, outscn, first, dblindirect) \ +- DL_CALL_FCT ((state)->callbacks.relocate_section, (state, outscn, first, \ +- dblindirect)) ++ ((state)->callbacks.relocate_section)(state, outscn, first, dblindirect) + + /* Allocate a data buffer for the relocations of the given output + section. */ + void (*count_relocations) (struct ld_state *, struct scninfo *); + #define COUNT_RELOCATIONS(state, scninfo) \ +- DL_CALL_FCT ((state)->callbacks.count_relocations, (state, scninfo)) ++ ((state)->callbacks.count_relocations)(state, scninfo) + + /* Create relocations for executable or DSO. */ + void (*create_relocations) (struct ld_state *, const Elf32_Word *); + #define CREATE_RELOCATIONS(state, dlbindirect) \ +- DL_CALL_FCT ((state)->callbacks.create_relocations, (state, dblindirect)) ++ ((state)->callbacks.create_relocations)(state, dblindirect) + + /* Finalize the output file. */ + int (*finalize) (struct ld_state *); + #define FINALIZE(state) \ +- DL_CALL_FCT ((state)->callbacks.finalize, (state)) ++ ((state)->callbacks.finalize)(state) + + /* Check whether special section number is known. */ + bool (*special_section_number_p) (struct ld_state *, size_t); + #define SPECIAL_SECTION_NUMBER_P(state, number) \ +- DL_CALL_FCT ((state)->callbacks.special_section_number_p, (state, number)) ++ ((state)->callbacks.special_section_number_p)(state, number) + + /* Check whether section type is known. */ + bool (*section_type_p) (struct ld_state *, XElf_Word); + #define SECTION_TYPE_P(state, type) \ +- DL_CALL_FCT ((state)->callbacks.section_type_p, (state, type)) ++ ((state)->callbacks.section_type_p)(state, type) + + /* Return section flags for .dynamic section. */ + XElf_Xword (*dynamic_section_flags) (struct ld_state *); + #define DYNAMIC_SECTION_FLAGS(state) \ +- DL_CALL_FCT ((state)->callbacks.dynamic_section_flags, (state)) ++ ((state)->callbacks.dynamic_section_flags)(state) + + /* Create the data structures for the .plt section and initialize it. */ + void (*initialize_plt) (struct ld_state *, Elf_Scn *scn); + #define INITIALIZE_PLT(state, scn) \ +- DL_CALL_FCT ((state)->callbacks.initialize_plt, (state, scn)) ++ ((state)->callbacks.initialize_plt)(state, scn) + + /* Create the data structures for the .rel.plt section and initialize it. */ + void (*initialize_pltrel) (struct ld_state *, Elf_Scn *scn); + #define INITIALIZE_PLTREL(state, scn) \ +- DL_CALL_FCT ((state)->callbacks.initialize_pltrel, (state, scn)) ++ ((state)->callbacks.initialize_pltrel)(state, scn) + + /* Finalize the .plt section the what belongs to them. */ + void (*finalize_plt) (struct ld_state *, size_t, size_t, struct symbol **); + #define FINALIZE_PLT(state, nsym, nsym_dyn, ndxtosym) \ +- DL_CALL_FCT ((state)->callbacks.finalize_plt, (state, nsym, nsym_dyn, \ +- ndxtosym)) ++ ((state)->callbacks.finalize_plt)(state, nsym, nsym_dyn, ndxtosym) + + /* Create the data structures for the .got section and initialize it. */ + void (*initialize_got) (struct ld_state *, Elf_Scn *scn); + #define INITIALIZE_GOT(state, scn) \ +- DL_CALL_FCT ((state)->callbacks.initialize_got, (state, scn)) ++ ((state)->callbacks.initialize_got)(state, scn) + + /* Create the data structures for the .got.plt section and initialize it. */ + void (*initialize_gotplt) (struct ld_state *, Elf_Scn *scn); + #define INITIALIZE_GOTPLT(state, scn) \ +- DL_CALL_FCT ((state)->callbacks.initialize_gotplt, (state, scn)) ++ ((state)->callbacks.initialize_gotplt)(state, scn) + + /* Return the tag corresponding to the native relocation type for + the platform. */ + int (*rel_type) (struct ld_state *); + #define REL_TYPE(state) \ +- DL_CALL_FCT ((state)->callbacks.rel_type, (state)) ++ ((state)->callbacks.rel_type)(state) + }; + + |