public inbox for bfd@sourceware.org
 help / color / mirror / Atom feed
* re: BFD patch to fix Mungw32 problem
@ 1999-03-11  9:18 Paul Sokolovsky
  1999-03-11 12:50 ` Mikey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Sokolovsky @ 1999-03-11  9:18 UTC (permalink / raw)
  To: bfd, Mumit Khan

Hello Bfd@cygnus.com,,

  Recently I proposed patch to workaround mingw32/win95 bug with
producing incorrect dll's. However, that patch broke handling of other
coff formats. New version explicitly applies only to PE images (format
pei).

Best regards,
 Paul                          mailto:paul-ml@is.lg.ua
coffcode.diff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BFD patch to fix Mungw32 problem
  1999-03-11  9:18 BFD patch to fix Mungw32 problem Paul Sokolovsky
@ 1999-03-11 12:50 ` Mikey
  1999-03-27 16:08 ` BFD patch to fix Mungw32 problem (Better Solution!!) Mikey
  1999-03-27 18:37 ` Mikey
  2 siblings, 0 replies; 4+ messages in thread
From: Mikey @ 1999-03-11 12:50 UTC (permalink / raw)
  To: Paul Sokolovsky; +Cc: bfd, Mumit Khan

There is a better way to handle this that is PEI
specific.

in ld/scripttempl/pe.sc
just add
    LONG (0); LONG (0); LONG (0); LONG (0); LONG (0);
to whatever section isn't being terminated properly.

you can use the -T option to ld, and write a linker script
to test.

On Thu, 11 Mar 1999 19:15:18 +0200, you wrote:

>Hello Bfd@cygnus.com,,
>
>  Recently I proposed patch to workaround mingw32/win95 bug with
>producing incorrect dll's. However, that patch broke handling of other
>coff formats. New version explicitly applies only to PE images (format
>pei).
>
>Best regards,
> Paul                          mailto:paul-ml@is.lg.ua


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BFD patch to fix Mungw32 problem (Better Solution!!)
  1999-03-11  9:18 BFD patch to fix Mungw32 problem Paul Sokolovsky
  1999-03-11 12:50 ` Mikey
@ 1999-03-27 16:08 ` Mikey
  1999-03-27 18:37 ` Mikey
  2 siblings, 0 replies; 4+ messages in thread
From: Mikey @ 1999-03-27 16:08 UTC (permalink / raw)
  To: Paul Sokolovsky; +Cc: bfd, Mumit Khan

Finally!!!

in ld/scripttempl/pe.sc

  .reloc ${RELOCATING+BLOCK(__section_alignment__)} :
  { 			
    reloc_start_addr__ = .;		
    *(.reloc)
    reloc_end_addr__ = .;
    . += ( reloc_end_addr__ - reloc_start_addr__ ) ? 5 : 0 ;
  } =0x0000

This works without adding a .reloc section to all images!!

On Thu, 11 Mar 1999 19:15:18 +0200, you wrote:

>Hello Bfd@cygnus.com,,
>
>  Recently I proposed patch to workaround mingw32/win95 bug with
>producing incorrect dll's. However, that patch broke handling of other
>coff formats. New version explicitly applies only to PE images (format
>pei).
>
>Best regards,
> Paul                          mailto:paul-ml@is.lg.ua


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BFD patch to fix Mungw32 problem (Better Solution!!)
  1999-03-11  9:18 BFD patch to fix Mungw32 problem Paul Sokolovsky
  1999-03-11 12:50 ` Mikey
  1999-03-27 16:08 ` BFD patch to fix Mungw32 problem (Better Solution!!) Mikey
@ 1999-03-27 18:37 ` Mikey
  2 siblings, 0 replies; 4+ messages in thread
From: Mikey @ 1999-03-27 18:37 UTC (permalink / raw)
  To: Paul Sokolovsky; +Cc: bfd, Mumit Khan

Woops, forgot the location counter moves in bytes not longs ;-)
should be

in ld/scripttempl/pe.sc

  .reloc ${RELOCATING+BLOCK(__section_alignment__)} :
  { 			
    reloc_start_addr__ = .;		
    *(.reloc)
    reloc_end_addr__ = .;
    . += ( reloc_end_addr__ - reloc_start_addr__ ) ? 5 * 4 : 0 ;
  } =0x0000

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-03-27 18:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-11  9:18 BFD patch to fix Mungw32 problem Paul Sokolovsky
1999-03-11 12:50 ` Mikey
1999-03-27 16:08 ` BFD patch to fix Mungw32 problem (Better Solution!!) Mikey
1999-03-27 18:37 ` Mikey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).