From 2aa61582ef53ea8c129aee4cf7aaf9b96b566cba Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 9 May 2002 21:42:24 +0000 Subject: 2001-05-09 Joel Sherrill * startup/linkcmds: In support of gcc 3.1, added one of more of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*, .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections and direction of segments to memory regions may also have been addressed. This was a sweep across all BSPs. * startup/linkcmds.real: Ditto. * clock/ckinit.c: Add volatile to Clock_driver_ticks. --- c/src/lib/libbsp/i960/rxgen960/ChangeLog | 10 ++++++++++ c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c | 2 +- c/src/lib/libbsp/i960/rxgen960/startup/linkcmds | 4 ++++ c/src/lib/libbsp/i960/rxgen960/startup/linkcmds.real | 6 +++++- 4 files changed, 20 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/i960') diff --git a/c/src/lib/libbsp/i960/rxgen960/ChangeLog b/c/src/lib/libbsp/i960/rxgen960/ChangeLog index 30ed46e816..e23b0c4e89 100644 --- a/c/src/lib/libbsp/i960/rxgen960/ChangeLog +++ b/c/src/lib/libbsp/i960/rxgen960/ChangeLog @@ -1,3 +1,13 @@ +2001-05-09 Joel Sherrill + + * startup/linkcmds: In support of gcc 3.1, added one of more + of the sections .jcr, .rodata*, .data.*, .gnu.linkonce.s2.*, + .gnu.linkonce.sb2.*, and .gnu.linkonce.s.*. Spacing corrections + and direction of segments to memory regions may also have been + addressed. This was a sweep across all BSPs. + * startup/linkcmds.real: Ditto. + * clock/ckinit.c: Add volatile to Clock_driver_ticks. + 2002-04-20 Ralf Corsepius * startup/nulsystbl.c: Fix braces. diff --git a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c index 842a186db8..73e23185c5 100644 --- a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c +++ b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c @@ -29,7 +29,7 @@ rtems_unsigned32 Clock_isrs; /* ISRs until next tick */ rtems_unsigned32 Reload_Clock_isrs; i960_isr_entry Old_ticker; -rtems_unsigned32 Clock_driver_ticks; +volatile rtems_unsigned32 Clock_driver_ticks; /* ticks since initialization */ unsigned int clock_isr_global[16]; /* place to store global regs */ diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds b/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds index d62b3c4de3..590d062087 100644 --- a/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds +++ b/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds @@ -22,6 +22,10 @@ SECTIONS { CREATE_OBJECT_SYMBOLS *(.text) + _rodata_start = . ; + *(.rodata*) + *(.gnu.linkonce.r*) + _erodata = ALIGN( 0x10 ) ; _etext = .; ___CTOR_LIST__ = .; diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds.real b/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds.real index 54be197fba..b47b17acf3 100644 --- a/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds.real +++ b/c/src/lib/libbsp/i960/rxgen960/startup/linkcmds.real @@ -122,7 +122,11 @@ SECTIONS *(.dtors) LONG(0) __DTOR_END__ = .; - etext = ALIGN( 0x10 ) ; + _rodata_start = . ; + *(.rodata*) + *(.gnu.linkonce.r*) + _erodata = ALIGN( 0x10 ) ; + etext = ALIGN( 0x10 ) ; /* END NEW TEST TEST TEST */ /* 16 byte aligned PRCB. */ -- cgit v1.2.3