projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug #443257
[fw/sdcc]
/
as
/
mcs51
/
lkrloc.c
diff --git
a/as/mcs51/lkrloc.c
b/as/mcs51/lkrloc.c
index 863de3153ab99b3747693734e610c645a0ef99a7..fecf9f8f6b143e1277b7358496df72330a3111c3 100644
(file)
--- a/
as/mcs51/lkrloc.c
+++ b/
as/mcs51/lkrloc.c
@@
-16,9
+16,6
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#if !defined(_MSC_VER)
-#include <alloc.h>
-#endif
#include "aslink.h"
/*)Module lkrloc.c
#include "aslink.h"
/*)Module lkrloc.c
@@
-52,7
+49,7
@@
/* Global which holds the upper 16 bits of the last 32 bit area adress
* output. Useful only for iHex mode.
*/
/* Global which holds the upper 16 bits of the last 32 bit area adress
* output. Useful only for iHex mode.
*/
-int lastExtendedAddress;
+int lastExtendedAddress
=-1
;
/*)Function VOID reloc(c)
*
/*)Function VOID reloc(c)
*
@@
-536,10
+533,12
@@
relr()
if (extendedAddress != lastExtendedAddress)
{
if (extendedAddress != lastExtendedAddress)
{
- #if 0
- printf("output extended linear address record 0x%x\n",
- extendedAddress);
- #endif
+#if 1 // jwk
+ if (lastExtendedAddress!=-1) {
+ printf("output extended linear address record 0x%x 0x%x\n",
+ extendedAddress, lastExtendedAddress);
+ }
+#endif
if (rflag)
{
if (rflag)
{