From 7478d36d82b6feb26edbc18734d13736a177890f Mon Sep 17 00:00:00 2001 From: jdh8d <jdh8d@git.zephyr-software.com> Date: Wed, 4 May 2016 16:52:57 +0000 Subject: [PATCH] made plugin disable itself for ET_EXEC pgms. only needed for ET_DYN pgms --- push64_relocs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/push64_relocs.h b/push64_relocs.h index 1d00143b9..00639f1c1 100644 --- a/push64_relocs.h +++ b/push64_relocs.h @@ -45,6 +45,11 @@ class Push64Relocs_t : public Zipr_SDK::ZiprPluginInterface_t } virtual void PinningEnd() { + if(m_elfio.get_type()==ET_EXEC) + { + cout<<"Push64_reloc: elide PinningEnd as type==ET_EXEC"<<endl; + return; + } cout<<"Push64Plugin: Ending pinning, applying push64 relocs."<<endl; HandlePush64Relocs(); } @@ -59,6 +64,11 @@ class Push64Relocs_t : public Zipr_SDK::ZiprPluginInterface_t } virtual void CallbackLinkingEnd() { + if(m_elfio.get_type()==ET_EXEC) + { + cout<<"Push64_reloc: elide CallbackLinkingEnd as type==ET_EXEC"<<endl; + return; + } cout<<"Push64Plugin: CBLinkEnd, updating adds." <<endl; UpdatePush64Adds(); } -- GitLab