* fileio.c (elf2b): When checking the bounds of the current
program header segment, subtract `low' from ph[n].p_paddr in order to correct the magic section offsets for the AVR's non-flash memory regions. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1080 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
f8e99df355
commit
c1a5d32c87
|
@ -1,3 +1,10 @@
|
|||
2012-04-18 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
* fileio.c (elf2b): When checking the bounds of the current
|
||||
program header segment, subtract `low' from ph[n].p_paddr in order
|
||||
to correct the magic section offsets for the AVR's non-flash
|
||||
memory regions.
|
||||
|
||||
2012-04-18 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
* fileio.c (elf_get_scn): Rather than trying to just match whether
|
||||
|
|
2
fileio.c
2
fileio.c
|
@ -948,7 +948,7 @@ static int elf2b(char * infile, FILE * inf,
|
|||
* from it, using the "foff" offset obtained above.
|
||||
*/
|
||||
if (mem->size != 1 &&
|
||||
ph[i].p_paddr + ph[i].p_filesz > mem->size) {
|
||||
ph[i].p_paddr - low + ph[i].p_filesz > mem->size) {
|
||||
fprintf(stderr,
|
||||
"%s: ERROR: program header entry #%d does not fit into \"%s\" memory:\n"
|
||||
" 0x%x + %u > %u\n",
|
||||
|
|
Loading…
Reference in New Issue