Current-Users archive

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

Re: cannot allocate memory running mame



On Thu, Oct 01, 2020 at 01:55:20PM +0200, Martin Husemann wrote:
> On Thu, Oct 01, 2020 at 01:27:38PM +0200, Thomas Klausner wrote:
> > but that was not sufficient.
> > 
> > > du -sh /usr/pkg/bin/mame
> > 269M    /usr/pkg/bin/mame
> 
> that is .. big.
> 
> Can you show readelf -l output for the binary?

Elf file type is EXEC (Executable file)
Entry point 0x4178f0
There are 9 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  PHDR           0x0000000000000040 0x0000000000400040 0x0000000000400040
                 0x00000000000001f8 0x00000000000001f8  R      0x8
  INTERP         0x0000000000000238 0x0000000000400238 0x0000000000400238
                 0x0000000000000017 0x0000000000000017  R      0x1
      [Requesting program interpreter: /usr/libexec/ld.elf_so]
  LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
                 0x00000000107ba378 0x00000000107ba378  R E    0x200000
  LOAD           0x00000000107ba7c8 0x0000000010dba7c8 0x0000000010dba7c8
                 0x00000000004bd174 0x0000000000b014c8  RW     0x200000
  DYNAMIC        0x00000000107c9078 0x0000000010dc9078 0x0000000010dc9078
                 0x0000000000000310 0x0000000000000310  RW     0x8
  NOTE           0x0000000000000250 0x0000000000400250 0x0000000000400250
                 0x000000000000002c 0x000000000000002c  R      0x4
  TLS            0x00000000107ba7c8 0x0000000010dba7c8 0x0000000010dba7c8
                 0x0000000000000000 0x0000000000000004  R      0x4
  GNU_EH_FRAME   0x000000000e9f8a48 0x000000000edf8a48 0x000000000edf8a48
                 0x000000000041b1ac 0x000000000041b1ac  R      0x4
  GNU_RELRO      0x00000000107ba7c8 0x0000000010dba7c8 0x0000000010dba7c8
                 0x0000000000010838 0x0000000000010838  R      0x1

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .interp .note.netbsd.ident .note.netbsd.pax .hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .plt.got .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table 
   03     .ctors .dtors .jcr .data.rel.ro .dynamic .got .data .bss 
   04     .dynamic 
   05     .note.netbsd.ident .note.netbsd.pax 
   06     .tbss 
   07     .eh_frame_hdr 
   08     .ctors .dtors .jcr .data.rel.ro .dynamic .got 

 Thomas


Home | Main Index | Thread Index | Old Index