Subject: bug#3708:

From: David Reitter <[email-masked]>
Date: Mon, 29 Jun 2009 14:41:20 -0400

This may be helpful  - it shows a number of apparent inconsistencies  
that I don't see in my builds on OS X 10.5.

Configure was run like this:

CFLAGS='-g -O0 -arch i386' LDFLAGS='-arch i386' ./configure --without- 
x --with-ns

GCC is 4.2.1

I can probably negotiate remote access to the machine should that be  
needed...

otool -l emacs:

Load command 0
       cmd LC_SEGMENT
   cmdsize 56
   segname __PAGEZERO
    vmaddr 0x00000000
    vmsize 0x00001000
   fileoff 0
  filesize 0
   maxprot 0x00000000
  initprot 0x00000000
    nsects 0
     flags 0x0
Load command 1
       cmd LC_SEGMENT
   cmdsize 464
   segname __TEXT
    vmaddr 0x00001000
    vmsize 0x00239000
   fileoff 0
  filesize 2330624
   maxprot 0x00000007
  initprot 0x00000005
    nsects 6
     flags 0x0
Section
   sectname __text
    segname __TEXT
       addr 0x00002370
       size 0x0021f7ff
     offset 4976
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x80000400
  reserved1 0
  reserved2 0
Section
   sectname __symbol_stub
    segname __TEXT
       addr 0x00221b70
       size 0x00000672
     offset 2231152
      align 2^1 (2)
     reloff 0
     nreloc 0
      flags 0x80000408
  reserved1 0 (index into indirect symbol table)
  reserved2 6 (size of stubs)
Section
   sectname __stub_helper
    segname __TEXT
       addr 0x002221e2
       size 0x00000aca
     offset 2232802
      align 2^0 (1)
     reloff 0
     nreloc 0
      flags 0x80000400
  reserved1 0
  reserved2 0
Section
   sectname __cstring
    segname __TEXT
       addr 0x00222cac
       size 0x00016ef2
     offset 2235564
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000002
  reserved1 0
  reserved2 0
Section
   sectname __const
    segname __TEXT
       addr 0x00239ba0
       size 0x00000404
     offset 2329504
      align 2^5 (32)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __unwind_info
    segname __TEXT
       addr 0x00239fb0
       size 0x00000048
     offset 2330544
      align 2^4 (16)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Load command 2
       cmd LC_SEGMENT
   cmdsize 532
   segname __DATA
    vmaddr 0x0023a000
    vmsize 0x001b5000
   fileoff 2330624
  filesize 1511424 (past end of file)
   maxprot 0x00000007
  initprot 0x00000003
    nsects 7
     flags 0x0
Section
   sectname __program_vars
    segname __DATA
       addr 0x0023a000
       size 0x00000014
     offset 2330624
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __la_symbol_ptr
    segname __DATA
       addr 0x0023a014
       size 0x0000044c (past end of file)
     offset 2330644 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000007
  reserved1 275 (index into indirect symbol table)
  reserved2 0
Section
   sectname __nl_symbol_ptr
    segname __DATA
       addr 0x0023a460
       size 0x0000188c
     offset 2331744 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000006
  reserved1 550 (index into indirect symbol table)
  reserved2 0
Section
   sectname __cfstring
    segname __DATA
       addr 0x0023bcec
       size 0x00000390
     offset 2338028 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __data
    segname __DATA
       addr 0x0023c080
       size 0x0016ec0c
     offset 2338944 (past end of file)
      align 2^5 (32)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __bss
    segname __DATA
       addr 0x003aaca0
       size 0x000378ed
     offset 0
      align 2^5 (32)
     reloff 0
     nreloc 0
      flags 0x00000001
  reserved1 0
  reserved2 0
Section
   sectname __common
    segname __DATA
       addr 0x003e25a0
       size 0x0000bb45
     offset 0
      align 2^5 (32)
     reloff 0
     nreloc 0
      flags 0x00000001
  reserved1 0
  reserved2 0
Load command 3
       cmd LC_SEGMENT
   cmdsize 940
   segname __OBJC
    vmaddr 0x003ef000
    vmsize 0x00002000
   fileoff 3842048 (past end of file)
  filesize 8192 (past end of file)
   maxprot 0x00000007
  initprot 0x00000003
    nsects 13
     flags 0x0
Section
   sectname __cat_cls_meth
    segname __OBJC
       addr 0x003ef000
       size 0x00000020
     offset 3842048 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __cat_inst_meth
    segname __OBJC
       addr 0x003ef020
       size 0x00000088
     offset 3842080 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __message_refs
    segname __OBJC
       addr 0x003ef0a8
       size 0x000007e4 (past end of file)
     offset 3842216 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000005
  reserved1 0
  reserved2 0
Section
   sectname __cls_refs
    segname __OBJC
       addr 0x003ef88c
       size 0x00000104 (past end of file)
     offset 3844236 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000005
  reserved1 0
  reserved2 0
Section
   sectname __class
    segname __OBJC
       addr 0x003ef990
       size 0x000002a0
     offset 3844496 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __meta_class
    segname __OBJC
       addr 0x003efc30
       size 0x000002a0
     offset 3845168 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __cls_meth
    segname __OBJC
       addr 0x003efed0
       size 0x00000028
     offset 3845840 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __inst_meth
    segname __OBJC
       addr 0x003efef8
       size 0x000008c8
     offset 3845880 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __protocol
    segname __OBJC
       addr 0x003f07c0
       size 0x00000028
     offset 3848128 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __instance_vars
    segname __OBJC
       addr 0x003f07e8
       size 0x00000294
     offset 3848168 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __module_info
    segname __OBJC
       addr 0x003f0a7c
       size 0x00000060
     offset 3848828 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __symbols
    segname __OBJC
       addr 0x003f0adc
       size 0x00000074
     offset 3848924 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Section
   sectname __image_info
    segname __OBJC
       addr 0x003f0b50
       size 0x00000008
     offset 3849040 (past end of file)
      align 2^2 (4)
     reloff 0
     nreloc 0
      flags 0x00000000
  reserved1 0
  reserved2 0
Load command 4
       cmd LC_SEGMENT
   cmdsize 56
   segname __LINKEDIT
    vmaddr 0x003f1000
    vmsize 0x000ad000
   fileoff 3850240 (past end of file)
  filesize 705448 (past end of file)
   maxprot 0x00000007
  initprot 0x00000001
    nsects 0
     flags 0x0
Load command 5
             cmd LC_DYLD_INFO_ONLY
         cmdsize 48
      rebase_off 0
     rebase_size 0
        bind_off 3850240 (past end of file)
       bind_size 868 (past end of file)
   weak_bind_off 0
  weak_bind_size 0
   lazy_bind_off 3851108 (past end of file)
  lazy_bind_size 5384 (past end of file)
      export_off 3856492 (past end of file)
     export_size 114980 (past end of file)
Load command 6
      cmd LC_SYMTAB
  cmdsize 24
   symoff 3971472 (past end of file)
    nsyms 25483 (past end of file)
   stroff 4285752 (past end of file)
  strsize 269936 (past end of file)
Load command 7
             cmd LC_DYSYMTAB
         cmdsize 80
       ilocalsym 0
       nlocalsym 20183
      iextdefsym 20183
      nextdefsym 4935
       iundefsym 25118
       nundefsym 365
          tocoff 0
            ntoc 0
       modtaboff 0
         nmodtab 0
    extrefsymoff 0
     nextrefsyms 0
  indirectsymoff 4277268 (past end of file)
   nindirectsyms 2121 (past end of file)
       extreloff 0
         nextrel 0
       locreloff 0
         nlocrel 0
Load command 8
           cmd LC_LOAD_DYLINKER
       cmdsize 28
          name /usr/lib/dyld (offset 12)
Load command 9
      cmd LC_UUID
  cmdsize 24
    uuid 0x15 0xe5 0x71 0x70 0x22 0xc4 0x9b 0x88
         0x8f 0x17 0xa7 0x81 0xad 0xc7 0x1e 0x77
Load command 10
         cmd LC_UNIXTHREAD
     cmdsize 80
      flavor i386_THREAD_STATE
       count i386_THREAD_STATE_COUNT
	    eax 0x00000000 ebx    0x00000000 ecx 0x00000000 edx 0x00000000
	    edi 0x00000000 esi    0x00000000 ebp 0x00000000 esp 0x00000000
	    ss  0x00000000 eflags 0x00000000 eip 0x00002370 cs  0x00000000
	    ds  0x00000000 es     0x00000000 fs  0x00000000 gs  0x00000000
Load command 11
           cmd LC_LOAD_DYLIB
       cmdsize 88
          name /System/Library/Frameworks/AppKit.framework/Versions/C/ 
AppKit (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 1027.1.0
compatibility version 45.0.0
Load command 12
           cmd LC_LOAD_DYLIB
       cmdsize 56
          name /usr/lib/libncurses.5.4.dylib (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 5.4.0
compatibility version 5.4.0
Load command 13
           cmd LC_LOAD_DYLIB
       cmdsize 52
          name /usr/lib/libSystem.B.dylib (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 123.0.0
compatibility version 1.0.0
Load command 14
           cmd LC_LOAD_DYLIB
       cmdsize 52
          name /usr/lib/libobjc.A.dylib (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 227.0.0
compatibility version 1.0.0
Load command 15
           cmd LC_LOAD_DYLIB
       cmdsize 100
          name /System/Library/Frameworks/CoreServices.framework/ 
Versions/A/CoreServices (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 44.0.0
compatibility version 1.0.0
Load command 16
           cmd LC_LOAD_DYLIB
       cmdsize 104
          name /System/Library/Frameworks/CoreFoundation.framework/ 
Versions/A/CoreFoundation (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 545.0.0
compatibility version 150.0.0
Load command 17
           cmd LC_LOAD_DYLIB
       cmdsize 112
          name /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/ApplicationServices (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 38.0.0
compatibility version 1.0.0
Load command 18
           cmd LC_LOAD_DYLIB
       cmdsize 96
          name /System/Library/Frameworks/Foundation.framework/ 
Versions/C/Foundation (offset 24)
    time stamp 2 Wed Dec 31 19:00:02 1969
       current version 745.0.0
compatibility version 300.0.0