From: Wolfgang Denk Date: Fri, 26 Dec 2014 11:00:26 +0100 Subject: [U-Boot] [PATCH] arc: introduce "mdbtrick" target In-Reply-To: <1419587516-30541-1-git-send-email-abrodkin@synopsys.com> References: <1419587516-30541-1-git-send-email-abrodkin@synopsys.com> Message-ID: <20141226100026.5FCFD3800DC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexey, In message <1419587516-30541-1-git-send-email-abrodkin@synopsys.com> you wrote: > MetaWare debugger doesn't support PIE (position-independent executable) > so the only way to load U-Boot in MDB is to fake it by: > 1. Reset PIE flag in ELF header > 2. Strip all debug information from elf > > Even though it could be done manually but having this automated way > is very convenient. User may build U-Boot that will be loaded on target > via MDB saying "make mdbtrick". I wonder if such manipulation helps? Are you really able to debug PIE code on the target just by fooling the debugger about it like this? I would expect that it would fail to work if it really doesn't support PIE? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Computers are not intelligent. They only think they are.