NetBSD-Bugs archive

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

toolchain/43856: some executables have all loaded sections executable

>Number:         43856
>Category:       toolchain
>Synopsis:       some executables have all loaded sections executable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 08 21:10:00 +0000 2010
>Originator:     Martin Husemann
>Release:        NetBSD 5.99.39
The NetBSD Foundation, Inc.
System: NetBSD 5.99.39 NetBSD 5.99.39 (GENERIC) #52: Wed 
Sep 8 22:43:54 CEST 2010
Architecture: sparc64
Machine: sparc64

Note how some binaries have all loadable sections marked as executable:

/usr/pkg/bin/tcsh:     file format elf64-sparc

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000100040 paddr 
0x0000000000100040 align 2**3
         filesz 0x0000000000000150 memsz 0x0000000000000150 flags r-x
  INTERP off    0x0000000000000190 vaddr 0x0000000000100190 paddr 
0x0000000000100190 align 2**0
         filesz 0x0000000000000017 memsz 0x0000000000000017 flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000100000 paddr 
0x0000000000100000 align 2**20
         filesz 0x00000000000505b4 memsz 0x00000000000505b4 flags r-x
    LOAD off    0x0000000000052000 vaddr 0x0000000000252000 paddr 
0x0000000000252000 align 2**20
         filesz 0x0000000000004530 memsz 0x0000000000019a10 flags rwx
 DYNAMIC off    0x0000000000052028 vaddr 0x0000000000252028 paddr 
0x0000000000252028 align 2**3
         filesz 0x00000000000001b0 memsz 0x00000000000001b0 flags rw-
    NOTE off    0x00000000000001a8 vaddr 0x00000000001001a8 paddr 
0x00000000001001a8 align 2**2
         filesz 0x000000000000002c memsz 0x000000000000002c flags r--

Dynamic Section:
  RPATH                /usr/pkg/lib
  INIT                 0x0000000000102c70
  FINI                 0x0000000000149dc0
  HASH                 0x00000000001001d8
  STRTAB               0x00000000001016f8
  SYMTAB               0x00000000001006a8
  STRSZ                0x0000000000000611
  SYMENT               0x0000000000000018
  DEBUG                0x0000000000000000
  PLTGOT               0x0000000000252300
  PLTRELSZ             0x0000000000000e70
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000101e00
  RELA                 0x0000000000101d10
  RELASZ               0x0000000000000f60
  RELAENT              0x0000000000000018
  0x70000001           0x0000000000000001
  0x70000001           0x0000000000000002

Build shells/tcsh from pkgsrc on some risc platform (exact triggers unknown)


Home | Main Index | Thread Index | Old Index