summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts
diff options
context:
space:
mode:
authorHans Rosenfeld <hans.rosenfeld@joyent.com>2019-09-24 13:12:56 +0000
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2019-09-25 15:01:47 +0000
commit3105c6ff4e5cab926dc4802a7e10eee1f4abbec4 (patch)
tree76433a4127af3c3b916167d617ef66c3013cd662 /usr/src/tools/scripts
parentabc694265cf5a5c05213271af9cdc13a4b22bdee (diff)
downloadillumos-joyent-release-20190926.tar.gz
OS-7992 use native linker sets for bhyve buildrelease-20190926
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Michael Zeller <mike.zeller@joyent.com> Approved by: John Levon <john.levon@joyent.com>
Diffstat (limited to 'usr/src/tools/scripts')
-rw-r--r--usr/src/tools/scripts/Makefile3
-rw-r--r--usr/src/tools/scripts/gensetdefs.pl31
2 files changed, 1 insertions, 33 deletions
diff --git a/usr/src/tools/scripts/Makefile b/usr/src/tools/scripts/Makefile
index e98068051d..56029785d9 100644
--- a/usr/src/tools/scripts/Makefile
+++ b/usr/src/tools/scripts/Makefile
@@ -23,7 +23,7 @@
#
# Copyright 2010, Richard Lowe
#
-# Copyright 2018 Joyent, Inc.
+# Copyright 2019 Joyent, Inc.
SHELL=/usr/bin/ksh93
@@ -49,7 +49,6 @@ SHFILES= \
PERLFILES= \
check_rtime \
find_elf \
- gensetdefs \
interface_check \
interface_cmp \
jstyle \
diff --git a/usr/src/tools/scripts/gensetdefs.pl b/usr/src/tools/scripts/gensetdefs.pl
deleted file mode 100644
index 8ca5782feb..0000000000
--- a/usr/src/tools/scripts/gensetdefs.pl
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/perl -w
-#
-# COPYRIGHT 2013 Pluribus Networks Inc.
-#
-# All rights reserved. This copyright notice is Copyright Management
-# Information under 17 USC 1202 and is included to protect this work and
-# deter copyright infringement. Removal or alteration of this Copyright
-# Management Information without the express written permission from
-# Pluribus Networks Inc is prohibited, and any such unauthorized removal
-# or alteration will be a violation of federal law.
-
-use strict;
-
-my @Sections = split(/\n/, `elfedit -r -e \'shdr:sh_name -osimple\' $ARGV[0] 2>&1`);
-
-foreach my $Section (@Sections) {
- if ($Section =~ "^set_") {
- print "\tfixing $Section\n";
-
- chomp(my $SectionAddr = `elfedit -r -e \'shdr:sh_addr -onum $Section\' $ARGV[0] 2>&1`);
- chomp(my $SectionSize = `elfedit -r -e \'shdr:sh_size -onum $Section\' $ARGV[0] 2>&1`);
- my $SectionEnd = hex($SectionAddr) + hex($SectionSize);
-
- `elfedit -e \'sym:st_bind __start_$Section global\' $ARGV[0] 2>&1`;
- `elfedit -e \'sym:st_value __start_$Section $SectionAddr\' $ARGV[0] 2>&1`;
- `elfedit -e \'sym:st_shndx __start_$Section $Section\' $ARGV[0] 2>&1`;
- `elfedit -e \'sym:st_bind __stop_$Section global\' $ARGV[0] 2>&1`;
- `elfedit -e \'sym:st_value __stop_$Section $SectionEnd\' $ARGV[0] 2>&1`;
- `elfedit -e \'sym:st_shndx __stop_$Section $Section\' $ARGV[0] 2>&1`;
- }
-}