openocd/src/target
Drasko DRASKOVIC 37aaa28292 Fix load_image for ELF with all p_paddr set to zero
So far image_load command tries to load ELF binaries to address
discovered by reading p_paddr member of a Program header of an ELF
segment.

However, ELF specifications says for p_paddr : ...Because System V
ignores physical addressing for application programs, this member has
unspecified contents for executable files and shared objects.

ARM ELF specifiaction goes even further, demanding that this member
be set to zero, using the p_vaddr as a segment load address.

To avoid the cases to wrong addr where p_paddr is zero,
we are now using p_vaddr to as a load destination in case that *all*
p_paddr == 0. Basically, this patch re-implements the approach present in
BDF's elf.c, which is used by GDB also (so that we can be consistent).
2011-06-24 11:00:35 +02:00
..
ecos - reverted some of the changes that possibly broke arm926ejs. Waiting 2008-04-04 13:47:38 +00:00
xscale Remove annoying end-of-line whitespace from most src/* 2009-09-21 18:40:55 +00:00
adi_v5_jtag.c arm_adi_v5: add/move apsel member in struct adiv5_dap 2011-02-17 09:28:07 +01:00
adi_v5_swd.c transport: move files over to transport folder 2011-06-13 15:51:04 +02:00
algorithm.c change #include "binarybuffer.h" to <helper/binarybuffer.h> 2009-12-03 04:22:17 -08:00
algorithm.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
arm_adi_v5.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm_adi_v5.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm_disassembler.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm_disassembler.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
arm_dpm.c arm_dpm: error propagation fixes 2010-07-19 22:13:49 +02:00
arm_dpm.h arm_dpm: add some SCR/RCR macros 2011-01-31 08:53:53 +01:00
arm_jtag.c ARM_JTAG: review scope of functions 2010-04-10 16:59:50 +08:00
arm_jtag.h warnings: fix alignment warnings 2010-09-20 13:12:35 +02:00
arm_opcodes.h Add opcodes for load/store registers words immediate post-indexed 2011-04-13 21:32:24 +02:00
arm_semihosting.c SYS_WRITE0 fix 2011-03-17 07:34:44 +01:00
arm_semihosting.h ARM: remove semihosting globals 2009-12-04 16:51:48 -08:00
arm_simulator.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes 2011-06-07 17:53:33 +02:00
arm_simulator.h ARM_SIMULATOR: review scope of functions 2010-04-10 16:57:49 +08:00
arm.h ARMV4_5: review scope of data 2010-04-10 16:46:01 +08:00
arm7_9_common.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm7_9_common.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm7tdmi.c arm_jtag_scann error propagation fixes 2010-07-20 08:24:53 +02:00
arm7tdmi.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm9tdmi.c warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
arm9tdmi.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm11_dbgtap.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes 2011-06-04 09:46:48 +02:00
arm11_dbgtap.h arm11 error propagation fixes 2010-07-20 08:42:52 +02:00
arm11.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm11.h ARM11: per-core options should not be global 2010-02-21 14:30:27 -08:00
arm720t.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm720t.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm920t.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm920t.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm926ejs.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm926ejs.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm946e.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm946e.h arm964e: Add support for ARM946E target. 2010-11-04 14:52:47 +01:00
arm966e.c arm: error propagation of arm_jtag_set_instr 2010-07-19 22:13:49 +02:00
arm966e.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
armv4_5_cache.c change #include "log.h" to <helper/log.h> 2009-12-03 04:22:52 -08:00
armv4_5_cache.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
armv4_5_mmu.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
armv4_5_mmu.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
armv4_5.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
armv4_5.h ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
armv7a.c ADIv5 share DAP command support 2010-03-05 10:39:25 -08:00
armv7a.h debug: debug entry error propagation 2010-07-19 22:13:49 +02:00
armv7m.c Fix a bunch of typos. 2011-03-17 07:25:25 +01:00
armv7m.h debug: debug entry error propagation 2010-07-19 22:13:49 +02:00
avr32_ap7k.c Remove useless MIPS code in avr32_ap7k.c. 2011-05-03 21:59:08 +02:00
avr32_ap7k.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_jtag.c avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_jtag.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_mem.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
avr32_mem.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
avr32_regs.c avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_regs.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avrt.c target/avrt: review unused symbols 2010-06-21 22:14:18 +08:00
avrt.h target/avr: review scope of symbols 2010-06-21 22:14:17 +08:00
breakpoints.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
breakpoints.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
cortex_a.c cortex_a : smp support 2011-04-28 12:22:29 +02:00
cortex_a.h cortex_a: rename cortex_a8.c/h to cortex_a.c/h 2011-03-22 11:29:10 +01:00
cortex_m3.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
cortex_m3.h cortex_m3: change cortec_m3 reset_config behaviour 2010-12-03 09:02:07 +00:00
dsp563xx_once.c dsp563xx_once: fix warning and potential bug 2011-03-20 19:47:58 +01:00
dsp563xx_once.h - add parameter flush to the once api to signalize if the jtag queue need to be flushed after the command 2011-02-15 20:20:00 +01:00
dsp563xx.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
dsp563xx.h - remove pipeline context, use once register instead - fix wrong register write in resume and step function - add more conditional branch handling 2011-02-17 08:24:17 +01:00
dsp5680xx.c doxy & cleanup 2011-06-12 11:18:27 +02:00
dsp5680xx.h doxy more 2011-06-12 11:18:27 +02:00
embeddedice.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
embeddedice.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
etb.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes 2011-06-07 17:53:33 +02:00
etb.h ETM trigger_percent becomes an ETB command 2009-12-19 13:06:46 -08:00
etm_dummy.c ARM ETM/ETB/trace: help/usage updates 2010-01-07 15:22:41 -08:00
etm_dummy.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
etm.c error handling: the error number is not part of the user interface 2011-01-03 13:33:27 +01:00
etm.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
fa526.c arm7/9: remove unused post_restore_context 2010-03-17 07:40:00 +01:00
feroceon.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
image.c Fix load_image for ELF with all p_paddr set to zero 2011-06-24 11:00:35 +02:00
image.h image: fix spelling mistake 2010-09-27 16:29:51 +02:00
Makefile.am build: add missing files to make dist 2011-06-17 12:21:01 +01:00
mips_ejtag.c mips: fixup fastdata 2011-06-01 07:23:42 +02:00
mips_ejtag.h mips: fixup fastdata 2011-06-01 07:23:42 +02:00
mips_m4k.c mips: fix some more endian madness 2011-06-01 07:23:35 +02:00
mips_m4k.h target/mips_m4k: review scope of symbols 2010-06-21 22:14:14 +08:00
mips32_dmaacc.c nit: do not add \n at end of LOG_ERROR 2011-01-05 21:46:12 +01:00
mips32_dmaacc.h TARGET/MIPS32_DMAACC: review scope of functions 2010-04-11 01:03:53 +08:00
mips32_pracc.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
mips32_pracc.h Compilation Warnings on OS X 10.5 2010-12-29 22:16:28 +01:00
mips32.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
mips32.h mips: add nor flash write from memory block 2011-06-05 22:45:21 +02:00
oocd_trace.c nit: more LOG_* \n fixes 2011-01-09 21:35:23 +01:00
oocd_trace.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
register.c change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
register.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
smp.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
smp.h smp : infra for smp minimum support 2011-04-28 12:22:10 +02:00
startup.tcl config: add init_targets proc that is executed just before init 2010-12-22 17:44:22 +01:00
target_request.c target misc: help/usage updates 2010-01-07 15:05:26 -08:00
target_request.h #include "target.h" less wildly 2009-11-16 00:35:24 -08:00
target_type.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
target.c partial support for 568013 and 568037, target integration. 2011-05-18 18:47:50 +02:00
target.h smp : infra for smp minimum support 2011-04-28 12:22:10 +02:00
testee.c target: further shrink Jim-awareness 2009-12-13 12:52:23 -08:00
trace.c target misc: help/usage updates 2010-01-07 15:05:26 -08:00
trace.h error number: review 2010-06-23 07:55:43 +02:00
xscale.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
xscale.h xscale: trace buffer remains enabled until explicitly disabled 2010-12-04 09:40:15 +01:00