Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197752 - stabilize dev-util/elfkickers-2.0a-r4
Summary: stabilize dev-util/elfkickers-2.0a-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: solar (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2007-11-01 10:05 UTC by Peter Volkov (RETIRED)
Modified: 2008-09-27 16:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2007-11-01 10:05:26 UTC
solar, should we stabilize dev-util/elfkickers-2.0a-r3? If so, please, CC archs:
amd64@gentoo.org,arm@gentoo.org,hppa@gentoo.org,mips@gentoo.org,ppc@gentoo.org,ppc64@gentoo.org,sparc@gentoo.org,x86@gentoo.org

Thank you.
Comment 1 solar (RETIRED) gentoo-dev 2007-11-01 14:48:07 UTC
Yeah -r3 should probably go stable. I don't think it will build otherwise with the recent header changes.
Comment 2 solar (RETIRED) gentoo-dev 2007-11-01 14:49:56 UTC
Added arches per request.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-11-01 20:56:25 UTC
x86 stable
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2007-11-01 21:03:06 UTC
x86 (32-bit):
astrid ~ # elfls /usr/bin/euses
/usr/bin/euses: not a 64-bit ELF file (class = 1 instead of 2).
hppa (32-bit):
elmer ~ # elfls /usr/bin/euses
/usr/bin/euses: not a 64-bit ELF file (class = 1 instead of 2).
sparc (64-bit):
bender ~ # elfls /usr/bin/euses
/usr/bin/euses: not a 64-bit ELF file (class = 1 instead of 2).

Is this a fault in elfls that I should ignore? It does this even with -E:
bender ~ # elfls -E /usr/bin/euses
/usr/bin/euses: warning: invalid program header table offset.
/usr/bin/euses: warning: invalid section header table offset.
/usr/bin/euses* (?18)
Comment 5 solar (RETIRED) gentoo-dev 2007-11-02 15:01:03 UTC
Old elfkickers on amd64 multilib.

solar@hangover / $ elfls /bin/ls
/bin/ls: not a 32-bit ELF file (class = 2 instead of 1).

Merge the ~arch
root@hangover / # env ACCEPT_KEYWORDS=~amd64 emerge -q elfkickers

solar@hangover / $ elfls /bin/ls
/bin/ls& (?62)
Program header table entries: 10 (40 - 270)
 0 T r-x    40   230 00000040       5 N "GNU"
 1 I "/lib64/ld-linux-x86-64.so.2"  6 ? r-- 162D0   5FC 000162D0
 2 P r-s     0 1816C 00000000       7 ? rw-     0     0 00000000
 3 P rw- 18298  1140 00118298 +558  8 ? r-- 18298   D60 00118298
 4 L rw- 18AC0   1C0 00118AC0       9 ? ---     0     0 00000000
Section header table entries: 27 (1A0C0 - 1A780)
 0 (null)                               14 P r-- 12340  3F8D .rodata
 1 I "/lib64/ld-linux-x86-64.so.2"      15 P r-- 162D0   5FC .eh_frame_hdr
 2 N "GNU"                              16 P r-- 168D0  189C .eh_frame
 3 H r--   2B0   368 .hash [4]          17 P rw- 18298    10 .ctors
 4 D r--   618   B28 .dynsym [5]        18 P rw- 182A8    10 .dtors
 5 $ r--  1140   465 .dynstr            19 P rw- 182B8     8 .jcr
 6 W r--  15A6    EE .gnu.version [4]   20 P rw- 182C0   800 .data.rel.ro
 7 V r--  1698    60 .gnu.version_r [5] 21 L rw- 18AC0   1C0 .dynamic [5]
 8 A r--  16F8  1308 .rela.dyn:0 [4]    22 P rw- 18C80   378 .got
 9 A r--  2A00   7F8 .rela.plt:11 [4]   23 P rw- 19000   3D8 .data
10 P r-x  31F8    18 .init              24 0 rw- 193D8   550 .bss
11 P r-x  3210   560 .plt               25 C "GCC: (GNU) 3.4.6 (Gentoo Ha..."
12 P r-x  3770  EBA8 .text              26 $ --- 19FE0    DB .shstrtab [S]
13 P r-x 12318     E .fini


ElfKickers is mostly for dealing with 32bit bins. I've been slowly adding 
64bit support. But it completely depends on the system it was compiled on.
So a 32bit system will only handle 32bit ELF's. And 64 will only handle 64bit ELF's


On hppa however I can confirm 

root@hake 0 ~ # elfls /bin/ls
/bin/ls: not a 64-bit ELF file (class = 1 instead of 2).
root@hake 0 ~ # file /bin/ls
/bin/ls: ELF 32-bit MSB executable, PA-RISC (LP64) version 1 (GNU/Linux), for GNU/Linux 2.4.17, dynamically linked (uses shared libs), stripped

#if ELF_CLASS == ELFCLASS32

Then we opt for 32bit code. Otherwise we fall back to 64bit.
So ELF_CLASS is not being defined. I'll have to look into that.

In the meantime however. This is the only version that actually compiles and still probably be marked stable if there was a previous version.

root@hake 0 / # cd /usr/local/tmp/portage/dev-util/elfkickers-2.0a-r3/work/ELFkickers/elfls/


root@hake 0 elfls # make CFLAGS="-DELF_CLASS=ELFCLASS32 $(portageq envvar CFLAGS)"
cc -DELF_CLASS=ELFCLASS32 -march=2.0 -O2 -pipe -mschedule=8000 -W -o elfls elfls.c


hppa is going to need work.. (maybe all 32bit systems)
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2007-11-02 15:19:02 UTC
(In reply to comment #5)
> hppa is going to need work.. (maybe all 32bit systems)

x86 has the same problem and sparc(64) too.

Meanwhile, stable for HPPA.
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2007-11-02 21:49:36 UTC
ppc stable
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2007-11-06 17:57:38 UTC
ppc64 stable
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2007-11-06 19:32:59 UTC
sparc stable
Comment 10 Togge 2007-11-16 20:23:50 UTC
--- amd64 ---
 
dev-util/elfkickers-2.0a-r3 - USE: -doc

1: emerges
2: passes collision-protect, (multilib-)strict, test
3: works

Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -ggdb -march=athlon64 -pipe"
DISTDIR="/tmp/portage"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms splitdebug strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo               http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/            http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/            http://mirror.switch.ch/mirror/gentoo/         http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf-8"
LINGUAS="en sv"
MAKEOPTS="-j3"
PKGDIR="/tmp/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/private"
SYNC="rsync://dx/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aiglx alsa amd64 apache2 arts asf avi bash-completion berkdb bitmap-fonts branding browserplugin cairo ccache cdr cli cpudetection cracklib crypt cscope css cups cvs dbus divx divx4linux dlloader dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac foomaticdb fortran freetype gdbm geoip gif gimp gmedia gnokii gnome gpm gstreamer gtk hal http iconv ieee1394 imap imlib ipv6 isdnlog java javascript jfs jpeg kde kdeenablefinal kdehiddenvisibility kdepim kerberos logitech-mouse mad madwifi maildir midi mikmod mmx mmx2 mmxext mono mozbranding moznopango mozsvg mp3 mpeg mplayer msn mudflap mysql ncurses nls nptl nptlonly nsplugin ntfs nvidia obex ogg oggvorbis opengl openmp oss pam pcre pdf pdflib perl png pppd python qt qt3 qt3support qt4 quicktime readline realmedia reflection reiserfs samba scanner sdl session spell spl sse sse2 ssl subversion svg symlink tcpd test tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vim-syntax vim-with-x visualization vorbis wifi wmf wmp wxwindows xcomposite xface xfs xine xinerama xml xorg xosd xpm xprint xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2007-11-17 09:33:51 UTC
Replace CC by using toolchain-funcs?

cc -O2 -pipe -march=k8 -W -o sstrip sstrip.c

Some warnings..

sstrip.c: In function 'getmemorysize32':
sstrip.c:381: warning: comparison between signed and unsigned
sstrip.c: In function 'modifyheaders32':
sstrip.c:381: warning: comparison between signed and unsigned
sstrip.c: In function 'getmemorysize64':
sstrip.c:383: warning: comparison between signed and unsigned
sstrip.c: In function 'modifyheaders64':
sstrip.c:383: warning: comparison between signed and unsigned

But still, amd64 stable wrt Comment #5
Comment 12 solar (RETIRED) gentoo-dev 2008-01-01 02:25:01 UTC
dev-util/elfkickers-2.0a-r4 which was just added to the tree would be a 
better ebuild to mark stable when the teams are ready.
It compiles 32/64 bit aware versions of the tools.
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2008-06-02 16:52:26 UTC
Adding remaining arches, sparc stable
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-02 17:34:06 UTC
Time for an -r5? :)

>>> Install elfkickers-2.0a-r4 into /dev/shm/portage/dev-util/elfkickers-2.0a-r4/image/ category dev-util
doman: elftoc/*.1 does not exist
doman: rebind/*.1 does not exist
doman: sstrip/*.1 does not exist
>>> Completed installing elfkickers-2.0a-r4 into /dev/shm/portage/dev-util/elfkickers-2.0a-r4/image/

(In reply to comment #12)
> dev-util/elfkickers-2.0a-r4 which was just added to the tree would be a 
> better ebuild to mark stable when the teams are ready.
> It compiles 32/64 bit aware versions of the tools.

Nice. Stable for HPPA.
Comment 15 Markus Rothe (RETIRED) gentoo-dev 2008-06-05 06:29:58 UTC
ppc64 stable
Comment 16 nixnut (RETIRED) gentoo-dev 2008-06-07 12:36:56 UTC
ppc stable
Comment 17 Raúl Porcel (RETIRED) gentoo-dev 2008-09-27 16:14:14 UTC
arm stable, closing