aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-06 22:23:37 +0000
committerJeff Law <law@redhat.com>1996-12-06 22:23:37 +0000
commit207e944c81f53357b96a7cfd747e81b79f987d0e (patch)
treed236183b460e0dfc88e5de1f122c8ba21a156f48 /bfd
parente763bd6fad2a9412eea63e002a5beb9fe3bc9ca1 (diff)
downloadgdb-207e944c81f53357b96a7cfd747e81b79f987d0e.zip
gdb-207e944c81f53357b96a7cfd747e81b79f987d0e.tar.gz
gdb-207e944c81f53357b96a7cfd747e81b79f987d0e.tar.bz2
* elf32-mn10300.c: Add some comments.
Still cleaning up.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-mn10300.c19
2 files changed, 21 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d5f91f5..30eefc9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
+
+ * elf32-mn10300.c: Add some comments.
+
Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
* ihex.c (ihex_scan): Always initialize buf before jumping to
diff --git a/bfd/elf32-mn10300.c b/bfd/elf32-mn10300.c
index 333a265..bdb8417 100644
--- a/bfd/elf32-mn10300.c
+++ b/bfd/elf32-mn10300.c
@@ -52,7 +52,7 @@ enum reloc_type
static reloc_howto_type elf_mn10300_howto_table[] =
{
- /* */
+ /* Dummy relocation. Does nothing. */
HOWTO (R_MN10300_NONE,
0,
2,
@@ -66,6 +66,7 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0,
0,
false),
+ /* Standard 32 bit reloc. */
HOWTO (R_MN10300_32,
0,
2,
@@ -79,6 +80,7 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffffffff,
0xffffffff,
false),
+ /* Standard 16 bit reloc. */
HOWTO (R_MN10300_16,
0,
1,
@@ -92,6 +94,7 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffff,
0xffff,
false),
+ /* Standard 8 bit reloc. */
HOWTO (R_MN10300_8,
0,
0,
@@ -105,6 +108,7 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xff,
0xff,
false),
+ /* Standard 32 bit reloc, except it explicitly writes big-endian format. */
HOWTO (R_MN10300_32B,
0,
2,
@@ -118,6 +122,7 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffffffff,
0xffffffff,
false),
+ /* Standard 16 bit reloc, except it explicitly writes big-endian format. */
HOWTO (R_MN10300_16B,
0,
1,
@@ -131,6 +136,8 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffff,
0xffff,
false),
+ /* Simple 32bit pc-relative reloc with a 1 byte adjustment
+ to get the pc-relative offset correct. */
HOWTO (R_MN10300_PCREL32_1BYTE,
0,
2,
@@ -144,6 +151,8 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffffffff,
0xffffffff,
false),
+ /* Simple 16bit pc-relative reloc with a 1 byte adjustment
+ to get the pc-relative offset correct. */
HOWTO (R_MN10300_PCREL16_1BYTE,
0,
1,
@@ -157,6 +166,8 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffff,
0xffff,
false),
+ /* Simple 8 pc-relative reloc with a 1 byte adjustment
+ to get the pc-relative offset correct. */
HOWTO (R_MN10300_PCREL8_1BYTE,
0,
0,
@@ -170,6 +181,8 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xff,
0xff,
true),
+ /* Simple 32 pc-relative reloc with a 2 byte adjustment
+ to get the pc-relative offset correct. */
HOWTO (R_MN10300_PCREL32_2BYTE,
0,
2,
@@ -183,6 +196,8 @@ static reloc_howto_type elf_mn10300_howto_table[] =
0xffffffff,
0xffffffff,
true),
+ /* Simple 16 pc-relative reloc with a 2 byte adjustment
+ to get the pc-relative offset correct. */
HOWTO (R_MN10300_PCREL16_2BYTE,
0,
1,
@@ -283,7 +298,7 @@ bfd_elf32_mn10300_reloc (abfd, reloc, symbol, data, isection, obfd, err)
/* We handle final linking of some relocs ourselves. */
{
- long relocation, insn;
+ long relocation;
/* Is the address of the relocation really within the section? */
if (reloc->address > isection->_cooked_size)