Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131962808
D23504.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D23504.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 1:21 PM (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23652207
Default Alt Text
D23504.id.diff (2 KB)
Attached To
Mode
D23504: Fixed bug where elf header field osabi is not set by objcopy
Attached
Detach File
Event Timeline
Log In to Comment