RFC: Assign regions to orphan sections

Daniel Jacobowitz dan@codesourcery.com
Thu May 6 20:00:00 GMT 2010

On Thu, May 06, 2010 at 07:51:47PM +0000, Joseph S. Myers wrote:
> On Mon, 3 May 2010, Daniel Jacobowitz wrote:
> > Does ld -N do the trick?  There may be some other oddities with
> > objcopy, because BFD autodetects D_PAGED on input files with program
> > headers based on the maxpagesize / minpagesize.
> With -N, the test still fails, but because it has "RWE" where "R E" is 
> expected.
> regexp_diff match failure
> regexp "^  LOAD[ \t]+0x[0-9a-f]+ 0x0*40000000 0x0*40000000 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x[0-9a-f]+$"
> line   "  LOAD           0x000054 0x40000000 0x40000000 0x0000c 0x0000c RWE 0x4"
> FAIL: ld-elf/orphan-region
> But it also fails the same way with -N for i686-pc-linux-gnu so I assume 
> this is simply an expected consequence of using -N.  With this patch 
> applied to adjust the expectation as well as using -N, it passes for both 
> c6x-elf and i686-pc-linux-gnu.  OK to commit?


Daniel Jacobowitz

More information about the Binutils mailing list