This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DJGPP config tweaks


This patch updates the previous tweak patch by updating the copyright (forgot 
about that, sorry).

Also, after looking over bfd/coff-stgo32.c I believe is in eventual need of 
an overhaul. One reason is that it makes use of the usrdata field in the bfd 
struct which it isn't supposed to be using. Another is I believe the logic 
that reads in the stub should be in ld/emultempl and not in bfd code. This 
would also allow for a --stub command line option along with some other 
possibilites like --min-stack-size, --dpmi-provider, etc.

If I'm correct in my assumptions, the next problem then becomes how then to 
pass the data to the bfd. The closest to what I want to do is in 
ld/emultempl/pe.em where it allows the stack size, base image location, etc. 
to be adjusted. It uses a pe-specific field in the bfd to pass the data it 
needs. But it includes "../bfd/libcoff.h" which it says is bad. If that's 
bad, then could a field be added to bfd_link_info to pass emulation specific 
data? Your suggestions would be most appreciated.

On to business. This should be the last twiddling needed to these files for a 
while.

bfd/ChangeLog:

2001-01-21  Mark Elbrecht  <snowball3@bigfoot.com>

	* coff-go32.c: Update copyright.
	* coff-stgo32.c: Likewise.
	* coff-go32.c (COFF_LONG_FILENAMES): Define.
	* coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
	* coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
	* coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.

Index: coff-go32.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-go32.c,v
retrieving revision 1.5
diff -c -p -r1.5 coff-go32.c
*** coff-go32.c	2000/05/03 04:25:33	1.5
--- coff-go32.c	2001/01/21 04:41:40
***************
*** 1,5 ****
  /* BFD back-end for Intel 386 COFF files (DJGPP variant).
!    Copyright 1990, 91, 92, 93, 94, 1999, 2000 Free Software Foundation, 
Inc.
     Written by DJ Delorie.
  
  This file is part of BFD, the Binary File Descriptor library.
--- 1,6 ----
  /* BFD back-end for Intel 386 COFF files (DJGPP variant).
!    Copyright 1990, 1991, 1992, 1993, 1994, 1999, 2000,
!    2001 Free Software Foundation, Inc.
     Written by DJ Delorie.
  
  This file is part of BFD, the Binary File Descriptor library.
*************** Foundation, Inc., 59 Temple Place - Suit
*** 23,35 ****
  #define TARGET_UNDERSCORE	'_'
  #define COFF_LONG_SECTION_NAMES
  #define COFF_SUPPORT_GNU_LINKONCE
  
  #define COFF_SECTION_ALIGNMENT_ENTRIES \
  { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
-   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
- { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.d"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
--- 24,35 ----
  #define TARGET_UNDERSCORE	'_'
  #define COFF_LONG_SECTION_NAMES
  #define COFF_SUPPORT_GNU_LINKONCE
+ #define COFF_LONG_FILENAMES
  
  #define COFF_SECTION_ALIGNMENT_ENTRIES \
  { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.d"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
Index: coff-stgo32.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-stgo32.c,v
retrieving revision 1.7
diff -c -p -r1.7 coff-stgo32.c
*** coff-stgo32.c	2000/11/22 01:08:53	1.7
--- coff-stgo32.c	2001/01/21 04:43:39
***************
*** 1,5 ****
! /* BFD back-end for Intel 386 COFF files (go32 variant with a stub).
!    Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
     Written by Robert Hoehne.
  
     This file is part of BFD, the Binary File Descriptor library.
--- 1,5 ----
! /* BFD back-end for Intel 386 COFF files (DJGPP variant with a stub).
!    Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
     Written by Robert Hoehne.
  
     This file is part of BFD, the Binary File Descriptor library.
***************
*** 41,53 ****
  #define COFF_GO32_EXE
  #define COFF_LONG_SECTION_NAMES
  #define COFF_SUPPORT_GNU_LINKONCE
  
  #define COFF_SECTION_ALIGNMENT_ENTRIES \
  { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
-   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
- { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }
  
  #include "bfd.h"
--- 41,52 ----
  #define COFF_GO32_EXE
  #define COFF_LONG_SECTION_NAMES
  #define COFF_SUPPORT_GNU_LINKONCE
+ #define COFF_LONG_FILENAMES
  
  #define COFF_SECTION_ALIGNMENT_ENTRIES \
  { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
  { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
    COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }
  
  #include "bfd.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]