kpatch_process: fix possible double free.
ptrace: fix NULL pointer access problem
fix patched process crashing when acccess the global var
fix probably restore cc symbol link fail when kill patch building uncourteous
optimize: Remove unnecessary comparison code
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit f3d59711105eb667fa2f920958fcbdbb7068afd2)
1.support specify patch-id, build-id and sanity check
2.simplify script and put it into libcare devel package
(cherry picked from commit a5aa48f473e6f9edca99c0316798f2180055421a)
libcare-dump: change the return value
gensrc: skip vector instruction in str_do_gotpcrel
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit c1712c9eb7c34f10f44dd0e1688acc713cbb98b6)
This patch fix following bugs:
1. origin build should not add '-Wl,-q' flags
2. recover config-host.mak after make kpatch for next building
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 932be3ded6490136ae3a1e79a96f389498b41a42)
the .cold suffix have two forms of expression: func.cold or
func.cold.NUM, we need to support recognizing both patterns.
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit 726a3b4f5c2418eaf9efaec26213af64f17f27a4)
New openEuler so naming rules have been changed, such as:
old so naming rules: libc-x.y.z.so
<----->
new so naming rules: libc.so.x.y.z
We need support this two version.
fix elf/strip: adapt to new gcc version(10.3.1)
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit 32e6a91435834614104e4b25b61bf5de4f3cc1c4)
This patch fix the following problems:
1. new libc so use new naming method,such as: libc.6.so -> libc.so.6;
2. destroy .rela section sh_flags INFO property;
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit 62ba2da90ad7989b71d9ca869afa8d5bfdbf8805)
- gensrc: we should add align while FLAGS_PUSH_SECTION flag is set
- elf: add section adderss for STT_NOTYPE type of symbol
Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit 70651236ba10ff7178f3969445ceccecbaba5831)
fix cblock parse for LCOLD/LHOT/.cold.NUM, .init_array and
support gnu_unique_object
Signed-off-by: imxcc <xingchaochao@huawei.com>
(cherry picked from commit 5048c1fb2050be2865ff39c40c6f6b6dbaf4008c)
Bugfix: When the selinux mode is enforcing, libcare.socket cannot
create symlink libcare.sock. This will cause the libcare.service
to fail to start.
Signed-off-by: imxcc <xingchaochao@huawei.com>