Simon Glass 
		7c15013639 
		
	 
	
	
	binman: tegra: Adjust symbol calculation depending on end-at-4gb ... 
			A recent change adjusted the symbol calculation to work on x86 but broke
it for Tegra. In fact this is because they have different needs.
On x86 devices the code is linked to a ROM address and the end-at-4gb
property is used for the image. In this case there is no need to add the
base address of the image, since the base address is already built into
the offset and image-pos properties.
On other devices we must add the base address since the offsets start at
zero.
In addition the base address is currently added to the 'offset' and 'size'
values. It should in fact only be added to 'image-pos', since 'offset' is
relative to its parent and 'size' is not actually an address. This code
should have been adjusted when support for 'image-pos' and 'size' was
added, but it was not.
To correct these problems:
- move the code that handles adding the base address to section.py, which
  can check the end-at-4gb property and which property
  (offset/size/image-pos) is being read
- add the base address only when needed (only for image-pos and not if the
  image uses end-at-4gb)
- add a note to the documentation
- add a separate test to cover x86 behaviour
Fixes: 15c981cc (binman: Correct symbol calculation with non-zero image base)
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com> 
		
	 
		2019-11-11 14:20:35 -05:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2018-09-29 11:49:35 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-23 20:27:57 -07:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-23 20:27:58 -07:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-09 04:40:27 -06:00 
		 
	
		
			
			
			
			
			
			2018-10-22 13:57:12 -04:00 
		 
	
		
			
			
			
			
			
			2019-05-08 12:44:07 +08:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:54:08 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-07-29 09:38:06 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-11-02 18:00:51 +08:00 
		 
	
		
			
			
			
			
			
			2019-11-02 18:00:51 +08:00 
		 
	
		
			
			
			
			
			
			2019-11-11 14:20:35 -05:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2016-12-20 08:09:55 +13:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-07-24 12:53:46 -07:00 
		 
	
		
			
			
			
			
			
			2019-11-11 14:20:35 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-12 19:53:45 -07:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2019-11-11 14:20:35 -05:00 
		 
	
		
			
			
			
			
			
			2019-11-11 14:20:35 -05:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00 
		 
	
		
			
			
			
			
			
			2019-11-02 18:00:51 +08:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2018-05-07 09:34:12 -04:00 
		 
	
		
			
			
			
			
			
			2019-10-15 08:40:02 -06:00