projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* pe-dll.c (pe_bfd_is_dll): New function.
[platform/upstream/binutils.git]
/
ld
/
pe-dll.c
diff --git
a/ld/pe-dll.c
b/ld/pe-dll.c
index
43caa0c
..
0f0f2e0
100644
(file)
--- a/
ld/pe-dll.c
+++ b/
ld/pe-dll.c
@@
-2830,3
+2830,11
@@
pe_exe_fill_sections (bfd *abfd, struct bfd_link_info *info)
}
reloc_s->contents = reloc_d;
}
+
+bfd_boolean
+pe_bfd_is_dll (bfd *abfd)
+{
+ return (bfd_get_format (abfd) == bfd_object
+ && obj_pe (abfd)
+ && pe_data (abfd)->dll);
+}