NetBSD-Bugs archive

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

Re: port-macppc/52564: current ofwboot.xcf crashes because of .eh_frame* in .text



The following reply was made to PR port-macppc/52564; it has been noted by GNATS.

From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-macppc/52564: current ofwboot.xcf crashes because of .eh_frame* in .text
Date: Mon, 25 Sep 2017 11:35:53 -0700

 Valery Ushakov <uwe%stderr.spb.ru@localhost> writes:
 
 >  Ok, just to be clear, the timeline here seems to be:
 >  
 >  1) my commit to elf32_powerpc_merge.x to merge .eh_frame* to .text
 >  2) my commit to ../Makefile.inc to disable .eh_frame generation
 >  3) christos@ commit to keep .eh_frame section
 >  4) commenting out unwind-related flags in ../Makefile.inc
 >  
 
 I think that is correct. Just for testing, I added these cases
 
    0) before any of 1-4 changes
    5) what's in current as of today
    
 >  
 >  Yeah, confusing.  Would it be much trouble for you to try reverting to
 >  before 1) and trying that and then 1) to 4), doing cleandir before
 >  each iteration.  Maybe copying ofwboot objdir aside after each step
 >  for possible later forensics.
 >  
 
 So I went through and built all the cases and saved of the obj/ dirs.
 If you want to look at them, let me know and I'll upload them somewhere.
 
 None of the cases boot now except for 4)
 
 Here are the sizes, none were exceptionally huge,
 > ll */*/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  89678 Sep 25 10:10 0/obj/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  89678 Sep 25 10:12 1/obj/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  81486 Sep 25 10:13 2/obj/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  81486 Sep 25 10:15 3/obj/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  89678 Sep 25 10:17 4/obj/ofwboot.xcf
 -rwxr-xr-x  1 scole  users  81486 Sep 25 10:46 5/obj/ofwboot.xcf
 
 Here are the headers from the .xcf files:
 
 > powerpc--netbsd-objdump -h */*/*.xcf
 
 0/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .eh_fram      00002eb4  00000074  00000074  0000014c  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   1 .text         00010000  00e00000  00e00000  00003000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   2 .data         00000258  00e10000  00e10000  00013000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   3 .bss          00002750  00e10258  00e10258  00000000  2**3
                   ALLOC
 
 1/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00012000  00e00000  00e00000  00001000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   1 .data         00000258  00e12000  00e12000  00013000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   2 .bss          00002750  00e12258  00e12258  00000000  2**3
                   ALLOC
 
 2/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00010000  00e00000  00e00000  00001000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   1 .data         00000258  00e10000  00e10000  00011000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   2 .bss          00002750  00e10258  00e10258  00000000  2**3
                   ALLOC
 
 3/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00010000  00e00000  00e00000  00001000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   1 .data         00000258  00e10000  00e10000  00011000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   2 .bss          00002750  00e10258  00e10258  00000000  2**3
                   ALLOC
 
 4/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         0000f6e0  00e00000  00e00000  00001000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   1 .eh_fram      00002920  00e0f6dc  00e0f6dc  000106e0  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   2 .data         00000258  00e12000  00e12000  00013000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   3 .bss          00002750  00e12258  00e12258  00000000  2**3
                   ALLOC
 
 5/obj/ofwboot.xcf:     file format aixcoff-rs6000
 
 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00010000  00e00000  00e00000  00001000  2**3
                   CONTENTS, ALLOC, LOAD, CODE
   1 .data         00000258  00e10000  00e10000  00011000  2**3
                   CONTENTS, ALLOC, LOAD, DATA
   2 .bss          00002750  00e10258  00e10258  00000000  2**3
                   ALLOC
 
 Maybe someone understands openfirmware or these sections better.  Is it
 a problem to leave the .eh_fram stuff in? Is there some restriction with
 .xcoff or openfirmware having a .text section greater than 16 bits?
 
 Let me know if I can provide any other info that might be useful.
 
 Thanks
 


Home | Main Index | Thread Index | Old Index