projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/doc: Remove duplicate description of lookup_global_symbol
[deliverable/binutils-gdb.git]
/
ld
/
pe-dll.c
diff --git
a/ld/pe-dll.c
b/ld/pe-dll.c
index 3cfbc39e5bdc551b2021559bbaa4431634ca9f5f..4679fca6d52c91f973bd011a5634559f98655d46 100644
(file)
--- a/
ld/pe-dll.c
+++ b/
ld/pe-dll.c
@@
-25,6
+25,7
@@
#include "libiberty.h"
#include "filenames.h"
#include "safe-ctype.h"
#include "libiberty.h"
#include "filenames.h"
#include "safe-ctype.h"
+#include "ctf-api.h"
#include <time.h>
#include <time.h>
@@
-444,16
+445,25
@@
typedef struct
bfd_vma vma;
char type;
short extra;
bfd_vma vma;
char type;
short extra;
+ int idx;
}
reloc_data_type;
static int
reloc_sort (const void *va, const void *vb)
{
}
reloc_data_type;
static int
reloc_sort (const void *va, const void *vb)
{
-
bfd_vma a = ((const reloc_data_type *) va)->vm
a;
-
bfd_vma b = ((const reloc_data_type *) vb)->vma
;
+
const reloc_data_type *a = (const reloc_data_type *) v
a;
+
const reloc_data_type *b = (const reloc_data_type *) vb
;
- return (a > b) ? 1 : ((a < b) ? -1 : 0);
+ if (a->vma > b->vma)
+ return 1;
+ if (a->vma < b->vma)
+ return -1;
+ if (a->idx > b->idx)
+ return 1;
+ if (a->idx < b->idx)
+ return -1;
+ return 0;
}
static int
}
static int
@@
-1595,6
+1605,7
@@
generate_reloc (bfd *abfd, struct bfd_link_info *info)
}
reloc_data[total_relocs].vma = sec_vma + relocs[i]->address;
}
reloc_data[total_relocs].vma = sec_vma + relocs[i]->address;
+ reloc_data[total_relocs].idx = total_relocs;
#define BITS_AND_SHIFT(bits, shift) (bits * 1000 | shift)
#define BITS_AND_SHIFT(bits, shift) (bits * 1000 | shift)
This page took
0.034077 seconds
and
4
git commands to generate.