Page MenuHomeFreeBSD

D23504.diff
No OneTemporary

D23504.diff

Index: head/contrib/elftoolchain/elfcopy/main.c
===================================================================
--- head/contrib/elftoolchain/elfcopy/main.c
+++ head/contrib/elftoolchain/elfcopy/main.c
@@ -1394,6 +1394,7 @@
ecp->oec = elftc_bfd_target_class(tgt);
ecp->oed = elftc_bfd_target_byteorder(tgt);
ecp->oem = elftc_bfd_target_machine(tgt);
+ ecp->abi = elftc_bfd_target_osabi(tgt);
}
if (ecp->otf == ETF_EFI || ecp->otf == ETF_PE)
ecp->oem = elftc_bfd_target_machine(tgt);
Index: head/contrib/elftoolchain/libelftc/elftc.3
===================================================================
--- head/contrib/elftoolchain/libelftc/elftc.3
+++ head/contrib/elftoolchain/libelftc/elftc.3
@@ -23,7 +23,7 @@
.\"
.\" $Id: elftc.3 3645 2018-10-15 20:17:14Z jkoshy $
.\"
-.Dd December 24, 2012
+.Dd February 12, 2020
.Dt ELFTC 3
.Os
.Sh NAME
@@ -57,6 +57,8 @@
Query the object format for a binary object descriptor.
.It Fn elftc_bfd_target_machine
Query the target machine for a binary object descriptor.
+.It Fn elftc_bfd_target_osabi
+Query the target osabi for a binary object descriptor.
.El
.It "C++ support"
.Bl -tag -compact -width indent
Index: head/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
===================================================================
--- head/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
+++ head/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
@@ -23,7 +23,7 @@
.\"
.\" $Id: elftc_bfd_find_target.3 3752 2019-06-28 01:12:53Z emaste $
.\"
-.Dd June 27, 2019
+.Dd February 12, 2020
.Dt ELFTC_BFD_FIND_TARGET 3
.Os
.Sh NAME
@@ -48,6 +48,8 @@
.Fn elftc_bfd_target_flavor "Elftc_Bfd_Target *target"
.Ft "unsigned int"
.Fn elftc_bfd_target_machine "Elftc_Bfd_Target *target"
+.Ft "unsigned int"
+.Fn elftc_bfd_target_osabi "Elftc_Bfd_Target *target"
.Sh DESCRIPTION
Function
.Fn elftc_bfd_find_target
Index: head/contrib/elftoolchain/libelftc/elftc_bfdtarget.c
===================================================================
--- head/contrib/elftoolchain/libelftc/elftc_bfdtarget.c
+++ head/contrib/elftoolchain/libelftc/elftc_bfdtarget.c
@@ -71,3 +71,10 @@
return (tgt->bt_machine);
}
+
+unsigned int
+elftc_bfd_target_osabi(Elftc_Bfd_Target *tgt)
+{
+
+ return (tgt->bt_osabi);
+}
Index: head/contrib/elftoolchain/libelftc/libelftc.h
===================================================================
--- head/contrib/elftoolchain/libelftc/libelftc.h
+++ head/contrib/elftoolchain/libelftc/libelftc.h
@@ -72,6 +72,7 @@
unsigned int elftc_bfd_target_byteorder(Elftc_Bfd_Target *_tgt);
unsigned int elftc_bfd_target_class(Elftc_Bfd_Target *_tgt);
unsigned int elftc_bfd_target_machine(Elftc_Bfd_Target *_tgt);
+unsigned int elftc_bfd_target_osabi(Elftc_Bfd_Target *_tgt);
int elftc_copyfile(int _srcfd, int _dstfd);
int elftc_demangle(const char *_mangledname, char *_buffer,
size_t _bufsize, unsigned int _flags);

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 13, 2:23 AM (9 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23652207
Default Alt Text
D23504.diff (2 KB)

Event Timeline