Re: setarch cannot set all listed architectures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31 Dec 2014 10:15, Benno Schulenberg wrote:
> On Wed, Dec 31, 2014, at 09:30, Mike Frysinger wrote:
> > On 24 Dec 2014 17:35, Benno Schulenberg wrote:
> > > The man page of setarch says for the option --list: "List the architectures
> > > that can be set."  However...
> > > 
> > > $ ./setarch --list   
> > > [...]
> > > i686
> > > athlon
> > > x86_64
> > > ia64
> > > 
> > > $ ./setarch x86_64 uname -m
> > > setarch: x86_64: Unrecognized architecture
> > > 
> > > [...]
> > > 
> > > Maybe --list should not be listing x86_64 and ia64 on this machine?
> > > Or maybe the error message in these cases should say "Cannot set
> > > the requested architecture" instead?
> > 
> > are you running a 32bit or 64bit kernel ?  is your compiled setarch 32bit or 
> > 64bit ?  i'm going to guess both are 32bit.
> 
> You guessed correctly.  :)
> 
> $ getconf LONG_BIT
> 32
> 
> $ grep " lm" /proc/cpuinfo || echo no
> no
> 
> $ file ./setarch 
> ./setarch: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x830fc9635dbe83defa4db7b0b5db241093d4c86d, not stripped
> 
> So... setarch --list shouldn't be mentioning x86_64 nor ia64 here?

maybe, but is it really worth the effort ?

if you took that exact 32bit binary and booted a 64bit kernel, i imagine it'd 
work fine.
-mike

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux