aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-07-30 04:34:58 +0000
committerAlan Modra <amodra@gmail.com>2008-07-30 04:34:58 +0000
commit0af1713e7cd57b52f6c81f73aa58934132198880 (patch)
treeaf4b52a6c5f3c8cd570e4f266f019cf552d6f442 /ld
parent22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff)
downloadfsf-binutils-gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip
fsf-binutils-gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz
fsf-binutils-gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2
Silence gcc printf warnings
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/emultempl/pe.em2
-rw-r--r--ld/emultempl/pep.em2
3 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 36d8560..9f40d04 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-30 Alan Modra <amodra@bigpond.net.au>
+
+ * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
+
2008-07-18 Joseph Myers <joseph@codesourcery.com>
* ld.texinfo (--no-wchar-size-warning): Document new ARM option.
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 1ef225a..08cfcfc 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -885,7 +885,7 @@ make_import_fixup (arelent *rel, asection *s)
if (pe_dll_extra_pe_debug)
printf ("arelent: %s@%#lx: add=%li\n", sym->name,
- (long) rel->address, (long) rel->addend);
+ (unsigned long) rel->address, (long) rel->addend);
if (! bfd_get_section_contents (s->owner, s, addend, rel->address, sizeof (addend)))
einfo (_("%C: Cannot get section contents - auto-import exception\n"),
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index 93190a1..2fae386 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -844,7 +844,7 @@ make_import_fixup (arelent *rel, asection *s)
if (pep_dll_extra_pe_debug)
printf ("arelent: %s@%#lx: add=%li\n", sym->name,
- (long) rel->address, (long) rel->addend);
+ (unsigned long) rel->address, (long) rel->addend);
if (! bfd_get_section_contents (s->owner, s, addend, rel->address, sizeof (addend)))
einfo (_("%C: Cannot get section contents - auto-import exception\n"),