aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-05-17 19:38:53 +0000
committerNick Clifton <nickc@redhat.com>2000-05-17 19:38:53 +0000
commita712da2085bdea09bc56b3a59eb31cf2ab024e00 (patch)
tree9d61a41f3e2b546bf10eacd972952c6118c70970 /ld/ldmain.c
parentf4bd37dad4bc492df305f32652ba812fef893420 (diff)
downloadgdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.zip
gdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.tar.gz
gdb-a712da2085bdea09bc56b3a59eb31cf2ab024e00.tar.bz2
Apply patch from Richard Gorton <gorton@scrugs.lkg.dec.com> to implement
--emit-relocs switch to the linker to preserve relocs in an output executable
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index ba2a592..cfdbdd7 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -214,6 +214,7 @@ main (argc, argv)
link_info.callbacks = &link_callbacks;
link_info.relocateable = false;
+ link_info.emitrelocations = false;
link_info.shared = false;
link_info.symbolic = false;
link_info.static_link = false;
@@ -1150,7 +1151,7 @@ undefined_symbol (info, name, abfd, section, address, fatal)
bfd *abfd;
asection *section;
bfd_vma address;
- boolean fatal;
+ boolean fatal ATTRIBUTE_UNUSED;
{
static char *error_name;
static unsigned int error_count;