Andrey Ryabinin 940db9e654 avr32: fix integer overflow in ELF_ET_DYN_BASE
Almost all arches define ELF_ET_DYN_BASE as 2/3 of TASK_SIZE.
Though it seems that some architectures do this in a wrong way.
The problem is that 2*TASK_SIZE may overflow 32-bits so
the real ELF_ET_DYN_BASE becomes wrong.
Fix this overflow by dividing TASK_SIZE prior to multiplying:
	 (TASK_SIZE / 3 * 2)

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
2015-04-13 18:48:55 +02:00
..
2014-04-18 11:40:33 +02:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00
2010-10-07 14:08:55 +01:00
2009-01-07 10:40:30 +01:00
2012-07-24 15:27:30 +08:00
2015-01-13 15:23:55 +02:00
2015-02-09 15:27:44 +01:00