This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Blackfin patch: Linker bits for FD-PIC (and ld.pot question)


Continuing the theme, this adds linker support for FD-PIC binaries to the Blackfin port.

Committed. Due to a shell accident, I also committed a change to ld/ld.pot (revision 1.27) which was apparently produced by configuring with --enable-maintainer-mode. I hope this is harmless; I don't know how these files are supposed to be handled in CVS. Should I leave it in?


Bernd
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ld/ChangeLog,v
retrieving revision 1.1488
diff -c -p -r1.1488 ChangeLog
*** ChangeLog	22 Mar 2006 09:28:12 -0000	1.1488
--- ChangeLog	26 Mar 2006 00:44:02 -0000
***************
*** 1,3 ****
--- 1,14 ----
+ 2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
+ 
+ 	* emulparams/elf32bfinfd.sh: New file.
+ 	* emultempl/bfin.em: Delete.
+ 	* emulparams/bfin.sh: Lose reference to bfin.em.
+ 	* Makefile.am (eelf32bfin.c): Likewise.
+ 	(eelf32bfinfd.c): New.
+ 	* Makefile.in: Regenerate.
+ 	* configure.tgt (bfin-*-elf, bfin-*-uclinux): Add elf32bfinfd to
+ 	targ_extra_emuls.
+ 
  2006-03-22  Richard Sandiford  <richard@codesourcery.com>
  	    Daniel Jacobowitz  <dan@codesourcery.com>
  	    Phil Edwards  <phil@codesourcery.com>
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.204
diff -c -p -r1.204 Makefile.am
*** Makefile.am	22 Mar 2006 09:28:13 -0000	1.204
--- Makefile.am	26 Mar 2006 00:44:02 -0000
*************** ALL_EMULATIONS = \
*** 149,154 ****
--- 149,155 ----
  	eelf32_sparc.o \
  	eelf32b4300.o \
  	eelf32bfin.o \
+ 	eelf32bfinfd.o \
  	eelf32cr16c.o \
  	eelf32bmip.o \
  	eelf32bmipn32.o \
*************** edelta68.c: $(srcdir)/emulparams/delta68
*** 624,632 ****
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} delta68 "$(tdir_delta68)"
  eelf32bfin.c: $(srcdir)/emulparams/bfin.sh \
!   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/bfin.em \
    $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32bfin "$(tdir_elf32bfin)" bfin
  eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
--- 625,637 ----
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} delta68 "$(tdir_delta68)"
  eelf32bfin.c: $(srcdir)/emulparams/bfin.sh \
!   $(srcdir)/emultempl/elf32.em \
    $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32bfin "$(tdir_elf32bfin)" bfin
+ eelf32bfinfd.c: $(srcdir)/emulparams/elf32bfinfd.sh $(srcdir)/emulparams/bfin.sh \
+   $(srcdir)/emultempl/elf32.em \
+   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ 	${GENSCRIPTS} elf32bfinfd "$(tdir_elf32bfinfd)" elf32bfinfd
  eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/ld/Makefile.in,v
retrieving revision 1.218
diff -c -p -r1.218 Makefile.in
*** Makefile.in	22 Mar 2006 09:28:13 -0000	1.218
--- Makefile.in	26 Mar 2006 00:44:03 -0000
*************** ALL_EMULATIONS = \
*** 372,377 ****
--- 372,378 ----
  	eelf32_sparc.o \
  	eelf32b4300.o \
  	eelf32bfin.o \
+ 	eelf32bfinfd.o \
  	eelf32cr16c.o \
  	eelf32bmip.o \
  	eelf32bmipn32.o \
*************** edelta68.c: $(srcdir)/emulparams/delta68
*** 1430,1438 ****
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} delta68 "$(tdir_delta68)"
  eelf32bfin.c: $(srcdir)/emulparams/bfin.sh \
!   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/bfin.em \
    $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32bfin "$(tdir_elf32bfin)" bfin
  eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
--- 1431,1443 ----
    $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} delta68 "$(tdir_delta68)"
  eelf32bfin.c: $(srcdir)/emulparams/bfin.sh \
!   $(srcdir)/emultempl/elf32.em \
    $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32bfin "$(tdir_elf32bfin)" bfin
+ eelf32bfinfd.c: $(srcdir)/emulparams/elf32bfinfd.sh $(srcdir)/emulparams/bfin.sh \
+   $(srcdir)/emultempl/elf32.em \
+   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ 	${GENSCRIPTS} elf32bfinfd "$(tdir_elf32bfinfd)" elf32bfinfd
  eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
    $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
  	${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.185
diff -c -p -r1.185 configure.tgt
*** configure.tgt	22 Mar 2006 09:28:13 -0000	1.185
--- configure.tgt	26 Mar 2006 00:44:09 -0000
*************** xscale-*-elf)		targ_emul=armelf
*** 83,90 ****
  avr-*-*)		targ_emul=avr2
  			targ_extra_emuls="avr1 avr3 avr4 avr5"
  			;;
! bfin-*-elf)		targ_emul=elf32bfin ;;
! bfin-*-uclinux*)	targ_emul=elf32bfin ;;
  cr16c-*-elf*)           targ_emul=elf32cr16c
  			;;
  cris-*-*aout*)		targ_emul=crisaout
--- 83,90 ----
  avr-*-*)		targ_emul=avr2
  			targ_extra_emuls="avr1 avr3 avr4 avr5"
  			;;
! bfin-*-elf)		targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
! bfin-*-uclinux*)	targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
  cr16c-*-elf*)           targ_emul=elf32cr16c
  			;;
  cris-*-*aout*)		targ_emul=crisaout
Index: emulparams/bfin.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/bfin.sh,v
retrieving revision 1.2
diff -c -p -r1.2 bfin.sh
*** emulparams/bfin.sh	28 Dec 2005 06:01:47 -0000	1.2
--- emulparams/bfin.sh	26 Mar 2006 00:44:09 -0000
*************** ENTRY=__start
*** 10,15 ****
  TEMPLATE_NAME=elf32
  GENERATE_SHLIB_SCRIPT=yes
  EMBEDDED=yes
- EXTRA_EM_FILE=bfin
  DATA_END_SYMBOLS="__edata = .; PROVIDE (_edata = .);"
  END_SYMBOLS="__end = .; PROVIDE (_end = .);"
--- 10,14 ----

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