aboutsummaryrefslogtreecommitdiff
path: root/bfd/i386linux.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cygnus>1995-10-28 00:26:12 +0000
committerNiklas Hallqvist <niklas@cygnus>1995-10-28 00:26:12 +0000
commit34e9ffbccc6dc8647f40b1f5468319b358337e48 (patch)
treee8c4bfbd4fd2810f8216437284a56b3690800f80 /bfd/i386linux.c
parentcf79773cb15480249935afb17a25f847550570b7 (diff)
downloadgdb-34e9ffbccc6dc8647f40b1f5468319b358337e48.zip
gdb-34e9ffbccc6dc8647f40b1f5468319b358337e48.tar.gz
gdb-34e9ffbccc6dc8647f40b1f5468319b358337e48.tar.bz2
Change PAGE_SIZE to TARGET_PAGE_SIZE
Diffstat (limited to 'bfd/i386linux.c')
-rw-r--r--bfd/i386linux.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/bfd/i386linux.c b/bfd/i386linux.c
index ebc9388..d46f622 100644
--- a/bfd/i386linux.c
+++ b/bfd/i386linux.c
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#define PAGE_SIZE 4096
+#define TARGET_PAGE_SIZE 4096
#define ZMAGIC_DISK_BLOCK_SIZE 1024
#define SEGMENT_SIZE 4096
#define TEXT_START_ADDR 0x0
@@ -441,17 +441,17 @@ linux_tally_symbols (h, data)
if (p != NULL)
alloc = (char *) malloc (strlen (name) + 1);
- /* FIXME! BFD should not call printf! */
if (p == NULL || alloc == NULL)
- fprintf (stderr, "Output file requires shared library `%s'\n", name);
+ (*_bfd_error_handler) ("Output file requires shared library `%s'\n",
+ name);
else
{
strcpy (alloc, name);
p = strrchr (alloc, '_');
*p++ = '\0';
- fprintf (stderr,
- "Output file requires shared library `%s.so.%s'\n",
- alloc, p);
+ (*_bfd_error_handler)
+ ("Output file requires shared library `%s.so.%s'\n",
+ alloc, p);
free (alloc);
}
@@ -637,10 +637,9 @@ linux_finish_dynamic_link (output_bfd, info)
if (f->h->root.root.type != bfd_link_hash_defined
&& f->h->root.root.type != bfd_link_hash_defweak)
{
- /* FIXME! */
- fprintf (stderr,
- "Symbol %s not defined for fixups\n",
- f->h->root.root.root.string);
+ (*_bfd_error_handler)
+ ("Symbol %s not defined for fixups\n",
+ f->h->root.root.root.string);
continue;
}
@@ -688,10 +687,9 @@ linux_finish_dynamic_link (output_bfd, info)
if (f->h->root.root.type != bfd_link_hash_defined
&& f->h->root.root.type != bfd_link_hash_defweak)
{
- /* FIXME! */
- fprintf (stderr,
- "Symbol %s not defined for fixups\n",
- f->h->root.root.root.string);
+ (*_bfd_error_handler)
+ ("Symbol %s not defined for fixups\n",
+ f->h->root.root.root.string);
continue;
}
@@ -714,8 +712,7 @@ linux_finish_dynamic_link (output_bfd, info)
if (linux_hash_table (info)->fixup_count != fixups_written)
{
- /* FIXME! */
- fprintf (stderr, "Warning: fixup count mismatch\n");
+ (*_bfd_error_handler) ("Warning: fixup count mismatch\n");
while (linux_hash_table (info)->fixup_count > fixups_written)
{
bfd_put_32 (output_bfd, 0, fixup_table);