diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-03-31 04:59:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-03-31 04:59:09 +0000 |
commit | 0397592594f7de52f34a0576db46621463dcd9d1 (patch) | |
tree | 096209669b83bd8845c423cc49c051c8156b8eb3 /binutils | |
parent | 8f24553567f8de42add1777f35ac4dffddf6e655 (diff) | |
download | gdb-0397592594f7de52f34a0576db46621463dcd9d1.zip gdb-0397592594f7de52f34a0576db46621463dcd9d1.tar.gz gdb-0397592594f7de52f34a0576db46621463dcd9d1.tar.bz2 |
Only build PowerPC stubs if we are converting a PowerPC object file.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/nlmconv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index 2fe381e..f148b37 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -383,7 +383,8 @@ main (argc, argv) which must be at the same location as other entries in the TOC section, we must do this before determining where the TOC section goes in setup_sections. */ - powerpc_build_stubs (inbfd, &symbols, &symcount); + if (bfd_get_arch (inbfd) == bfd_arch_powerpc) + powerpc_build_stubs (inbfd, &symbols, &symcount); /* end-sanitize-powerpc-netware */ /* Set up the sections. */ @@ -857,7 +858,8 @@ main (argc, argv) /* start-sanitize-powerpc-netware */ /* Resolve the stubs we build for PowerPC NetWare. */ - powerpc_resolve_stubs (inbfd, outbfd); + if (bfd_get_arch (inbfd) == bfd_arch_powerpc) + powerpc_resolve_stubs (inbfd, outbfd); /* end-sanitize-powerpc-netware */ /* Copy over the sections. */ |