projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
S/390: Fix 16 bit pc relative relocs.
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-rl78.c
diff --git
a/gas/config/tc-rl78.c
b/gas/config/tc-rl78.c
index bd0503987e0cdcdd998fdd81605725ddada79857..815a10c5ba2a3559e37a355aab35e170c26d2db7 100644
(file)
--- a/
gas/config/tc-rl78.c
+++ b/
gas/config/tc-rl78.c
@@
-22,7
+22,6
@@
#include "struc-symbol.h"
#include "safe-ctype.h"
#include "dwarf2dbg.h"
#include "struc-symbol.h"
#include "safe-ctype.h"
#include "dwarf2dbg.h"
-#include "libbfd.h"
#include "elf/common.h"
#include "elf/rl78.h"
#include "rl78-defs.h"
#include "elf/common.h"
#include "elf/rl78.h"
#include "rl78-defs.h"
@@
-131,7
+130,7
@@
rl78_prefix (int p)
}
int
}
int
-rl78_has_prefix ()
+rl78_has_prefix (
void
)
{
return rl78_bytes.n_prefix;
}
{
return rl78_bytes.n_prefix;
}
@@
-308,7
+307,7
@@
struct option md_longopts[] =
size_t md_longopts_size = sizeof (md_longopts);
int
size_t md_longopts_size = sizeof (md_longopts);
int
-md_parse_option (int c, char * arg ATTRIBUTE_UNUSED)
+md_parse_option (int c, c
onst c
har * arg ATTRIBUTE_UNUSED)
{
switch (c)
{
{
switch (c)
{
@@
-502,7
+501,7
@@
rl78_frag_init (fragS * fragP)
{
if (rl78_bytes.n_relax || rl78_bytes.link_relax)
{
{
if (rl78_bytes.n_relax || rl78_bytes.link_relax)
{
- fragP->tc_frag_data =
malloc (sizeof (rl78_bytesT)
);
+ fragP->tc_frag_data =
XNEW (rl78_bytesT
);
memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT));
}
else
memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT));
}
else
@@
-533,7
+532,7
@@
rl78_handle_align (fragS * frag)
}
}
}
}
-char *
+c
onst c
har *
md_atof (int type, char * litP, int * sizeP)
{
return ieee_md_atof (type, litP, sizeP, target_big_endian);
md_atof (int type, char * litP, int * sizeP)
{
return ieee_md_atof (type, litP, sizeP, target_big_endian);
@@
-1271,8
+1270,8
@@
tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
fixp->fx_subsy = NULL;
}
fixp->fx_subsy = NULL;
}
- reloc[0] =
(arelent *) xmalloc (sizeof (arelent)
);
- reloc[0]->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *)
);
+ reloc[0] =
XNEW (arelent
);
+ reloc[0]->sym_ptr_ptr =
XNEW (asymbol *
);
* reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where;
reloc[0]->addend = fixp->fx_offset;
* reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where;
reloc[0]->addend = fixp->fx_offset;
@@
-1284,8
+1283,8
@@
tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
}
#define OPX(REL,SYM,ADD) \
}
#define OPX(REL,SYM,ADD) \
- reloc[rp] =
(arelent *) xmalloc (sizeof (arelent)
); \
- reloc[rp]->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *));
\
+ reloc[rp] =
XNEW (arelent
); \
+ reloc[rp]->sym_ptr_ptr =
XNEW (asymbol *);
\
reloc[rp]->howto = bfd_reloc_type_lookup (stdoutput, REL); \
reloc[rp]->addend = ADD; \
* reloc[rp]->sym_ptr_ptr = SYM; \
reloc[rp]->howto = bfd_reloc_type_lookup (stdoutput, REL); \
reloc[rp]->addend = ADD; \
* reloc[rp]->sym_ptr_ptr = SYM; \
This page took
0.024249 seconds
and
4
git commands to generate.