bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/19106] os_region_check() is called too early


From: martina.schmoeller at kathrein dot de
Subject: [Bug ld/19106] os_region_check() is called too early
Date: Wed, 04 Nov 2015 08:32:07 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19106

Martina Schmoeller <martina.schmoeller at kathrein dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |address@hidden
                   |                            |.de

--- Comment #3 from Martina Schmoeller <martina.schmoeller at kathrein dot de> 
---
Created attachment 8764
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8764&action=edit
Testcase for negative region overflow

Hi,

I reduced Christian's source to a few lines of code.
In this test case, make generates two executables. For the first one, the flash
region is set large enough that no error appears.
For the second one, the flash region is set only 12 bytes larger than
calculated by 'size'(you can change this value in the makefile)

You should get an output like this:
`FLASH' overflowed by -12 bytes

This goes up to -15 bytes. With 16 bytes or more, the error disappears.

When you take a look at the generated .map file, it seems like these 16 bytes
is the difference between the size before and after relaxing.

 .ARM.exidx.text.startup
                0x00000000080020e0        0x0 /tmp/cc80m0Vb.ltrans0.ltrans.o
                                          0x8 (size before relaxing)
 .ARM.exidx     0x00000000080020d8        0x8 /tmp/cc80m0Vb.ltrans0.ltrans.o
                                         0x10 (size before relaxing)

Compared to the original project, its the same, but in a larger scope.

Regards
Martina

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]