jiez | 1 Jun 2009 09:25
Favicon

[3417] trunk/uClibc: Backport UCLIBC_HAS_STUBS config option from the upstream.

Revision 3417 Author jiez Date 2009-06-01 02:25:42 -0500 (Mon, 01 Jun 2009)

Log Message

Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc provide fork() stub on NOMMU targets. It's default off.

Modified Paths

Diff

Modified: trunk/uClibc/extra/Configs/Config.in (3416 => 3417)

--- trunk/uClibc/extra/Configs/Config.in 2009-05-30 20:04:03 UTC (rev 3416) +++ trunk/uClibc/extra/Configs/Config.in 2009-06-01 07:25:42 UTC (rev 3417) <at> <at> -515,6 +515,23 <at> <at> Currently applies to bcopy/bzero/bcmp/index/rindex et al. WARNING! ABI incompatibility. +config UCLIBC_HAS_STUBS + bool "Provide stubs for unavailable functionality" + default n + help + With this option uClibc provides non-functional stubs for + functions which are impossible to implement on the target + architecture. Otherwise, such functions are simply omitted. + + As of 2008-07, this option makes uClibc provide fork() stub + on NOMMU targets. It always sets errno to ENOSYS and returns -1. + + This may be useful if you port a lot of software and cannot + audit all of it and replace or disable fork() usage. + With this option, a program which uses fork() will build + successfully. Of course, it may be useless if fork() + is essential for its operation. + config UCLIBC_HAS_SHADOW bool "Shadow Password Support" default y

Modified: trunk/uClibc/include/unistd.h (3416 => 3417)

--- trunk/uClibc/include/unistd.h 2009-05-30 20:04:03 UTC (rev 3416) +++ trunk/uClibc/include/unistd.h 2009-06-01 07:25:42 UTC (rev 3417) <at> <at> -717,7 +717,7 <at> <at> #endif -#if 1 || defined __ARCH_USE_MMU__ +#if defined __UCLIBC_HAS_STUBS__ || defined __ARCH_USE_MMU__ /* Clone the calling process, creating an exact copy. Return -1 for errors, 0 to the new process, and the process ID of the new process to the old process. */

Modified: trunk/uClibc/libc/sysdeps/linux/common/fork.c (3416 => 3417)

--- trunk/uClibc/libc/sysdeps/linux/common/fork.c 2009-05-30 20:04:03 UTC (rev 3416) +++ trunk/uClibc/libc/sysdeps/linux/common/fork.c 2009-06-01 07:25:42 UTC (rev 3417) <at> <at> -11,19 +11,26 <at> <at> #include <unistd.h> #ifdef __ARCH_USE_MMU__ + #ifdef __NR_fork extern __typeof(fork) __libc_fork; #define __NR___libc_fork __NR_fork -_syscall0(pid_t, __libc_fork); +_syscall0(pid_t, __libc_fork) +libc_hidden_proto(fork) +weak_alias(__libc_fork,fork) +libc_hidden_weak(fork) #endif -#else + +#elif defined __UCLIBC_HAS_STUBS__ + pid_t __libc_fork(void) { __set_errno(ENOSYS); return -1; } -#endif libc_hidden_proto(fork) weak_alias(__libc_fork,fork) libc_hidden_weak(fork) link_warning(fork, "fork: this function is not implemented on no-mmu systems") + +#endif \ No newline at end of file

Modified: trunk/uClibc/libc/unistd/daemon.c (3416 => 3417)

--- trunk/uClibc/libc/unistd/daemon.c 2009-05-30 20:04:03 UTC (rev 3416) +++ trunk/uClibc/libc/unistd/daemon.c 2009-06-01 07:25:42 UTC (rev 3417) <at> <at> -55,7 +55,6 <at> <at> libc_hidden_proto(dup2) libc_hidden_proto(setsid) libc_hidden_proto(chdir) -libc_hidden_proto(fork) #ifndef __ARCH_USE_MMU__ #include <sys/syscall.h> <at> <at> -82,6 +81,8 <at> <at> return ret; } #else +libc_hidden_proto(fork) + static inline pid_t fork_parent(void) { switch (fork()) {
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3417">3417</a>
Author <a href="http://blackfin.uclinux.org/gf/user/jiez/">jiez</a>
Date 2009-06-01 02:25:42 -0500 (Mon, 01 Jun 2009)
<h3>Log Message</h3>
Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc provide fork() stub on NOMMU targets. It's default off.

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkuClibcextraConfigsConfigin">trunk/uClibc/extra/Configs/Config.in</a></li>
<li><a href="#trunkuClibcincludeunistdh">trunk/uClibc/include/unistd.h</a></li>
<li><a href="#trunkuClibclibcsysdepslinuxcommonforkc">trunk/uClibc/libc/sysdeps/linux/common/fork.c</a></li>
<li><a href="#trunkuClibclibcunistddaemonc">trunk/uClibc/libc/unistd/daemon.c</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/extra/Configs/Config.in (3416 =&gt; 3417)</h4>
<span>
<span class="info">--- trunk/uClibc/extra/Configs/Config.in	2009-05-30 20:04:03 UTC (rev 3416)
+++ trunk/uClibc/extra/Configs/Config.in	2009-06-01 07:25:42 UTC (rev 3417)
</span><span class="lines"> <at>  <at>  -515,6 +515,23  <at>  <at> 
</span><span class="cx"> 	  Currently applies to bcopy/bzero/bcmp/index/rindex et al.
</span><span class="cx"> 	  WARNING! ABI incompatibility.
</span><span class="cx"> 
</span>+config UCLIBC_HAS_STUBS
+	bool "Provide stubs for unavailable functionality"
+	default n
+	help
+	  With this option uClibc provides non-functional stubs for
+	  functions which are impossible to implement on the target
+	  architecture. Otherwise, such functions are simply omitted.
+
+	  As of 2008-07, this option makes uClibc provide fork() stub
+	  on NOMMU targets. It always sets errno to ENOSYS and returns -1.
+
+	  This may be useful if you port a lot of software and cannot
+	  audit all of it and replace or disable fork() usage.
+	  With this option, a program which uses fork() will build
+	  successfully. Of course, it may be useless if fork()
+	  is essential for its operation.
+
<span class="cx"> config UCLIBC_HAS_SHADOW
</span><span class="cx"> 	bool "Shadow Password Support"
</span><span class="cx"> 	default y
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/include/unistd.h (3416 =&gt; 3417)</h4>
<span>
<span class="info">--- trunk/uClibc/include/unistd.h	2009-05-30 20:04:03 UTC (rev 3416)
+++ trunk/uClibc/include/unistd.h	2009-06-01 07:25:42 UTC (rev 3417)
</span><span class="lines"> <at>  <at>  -717,7 +717,7  <at>  <at> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> 
</span>-#if 1 || defined __ARCH_USE_MMU__
+#if defined __UCLIBC_HAS_STUBS__ || defined __ARCH_USE_MMU__
<span class="cx"> /* Clone the calling process, creating an exact copy.
</span><span class="cx">    Return -1 for errors, 0 to the new process,
</span><span class="cx">    and the process ID of the new process to the old process.  */
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/libc/sysdeps/linux/common/fork.c (3416 =&gt; 3417)</h4>
<span>
<span class="info">--- trunk/uClibc/libc/sysdeps/linux/common/fork.c	2009-05-30 20:04:03 UTC (rev 3416)
+++ trunk/uClibc/libc/sysdeps/linux/common/fork.c	2009-06-01 07:25:42 UTC (rev 3417)
</span><span class="lines"> <at>  <at>  -11,19 +11,26  <at>  <at> 
</span><span class="cx"> #include &lt;unistd.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #ifdef __ARCH_USE_MMU__
</span>+
<span class="cx"> #ifdef __NR_fork
</span><span class="cx"> extern __typeof(fork) __libc_fork;
</span><span class="cx"> #define __NR___libc_fork __NR_fork
</span>-_syscall0(pid_t, __libc_fork);
+_syscall0(pid_t, __libc_fork)
+libc_hidden_proto(fork)
+weak_alias(__libc_fork,fork)
+libc_hidden_weak(fork)
<span class="cx"> #endif
</span>-#else
+
+#elif defined __UCLIBC_HAS_STUBS__
+
<span class="cx"> pid_t __libc_fork(void)
</span><span class="cx"> {
</span><span class="cx"> 	__set_errno(ENOSYS);
</span><span class="cx"> 	return -1;
</span><span class="cx"> }
</span>-#endif
<span class="cx"> libc_hidden_proto(fork)
</span><span class="cx"> weak_alias(__libc_fork,fork)
</span><span class="cx"> libc_hidden_weak(fork)
</span><span class="cx"> link_warning(fork, "fork: this function is not implemented on no-mmu systems")
</span>+
+#endif
<span class="cx">\ No newline at end of file
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/libc/unistd/daemon.c (3416 =&gt; 3417)</h4>
<span>
<span class="info">--- trunk/uClibc/libc/unistd/daemon.c	2009-05-30 20:04:03 UTC (rev 3416)
+++ trunk/uClibc/libc/unistd/daemon.c	2009-06-01 07:25:42 UTC (rev 3417)
</span><span class="lines"> <at>  <at>  -55,7 +55,6  <at>  <at> 
</span><span class="cx"> libc_hidden_proto(dup2)
</span><span class="cx"> libc_hidden_proto(setsid)
</span><span class="cx"> libc_hidden_proto(chdir)
</span>-libc_hidden_proto(fork)
<span class="cx"> 
</span><span class="cx"> #ifndef __ARCH_USE_MMU__
</span><span class="cx"> #include &lt;sys/syscall.h&gt;
</span><span class="lines"> <at>  <at>  -82,6 +81,8  <at>  <at> 
</span><span class="cx"> 	return ret;
</span><span class="cx"> }
</span><span class="cx"> #else
</span>+libc_hidden_proto(fork)
+
<span class="cx"> static inline pid_t fork_parent(void)
</span><span class="cx"> {
</span><span class="cx"> 	switch (fork()) {
</span></span>
</div>
</div>

</div>
jiez | 1 Jun 2009 16:47
Favicon

[3418] trunk/buildscript-experimental: Steal Mike' s change r3126 for BuildToolChain.

Revision 3418 Author jiez Date 2009-06-01 09:47:11 -0500 (Mon, 01 Jun 2009)

Log Message

Steal Mike's change r3126 for BuildToolChain.

Modified Paths

Diff

Modified: trunk/buildscript-experimental/toolchain-build (3417 => 3418)

--- trunk/buildscript-experimental/toolchain-build 2009-06-01 07:25:42 UTC (rev 3417) +++ trunk/buildscript-experimental/toolchain-build 2009-06-01 14:47:11 UTC (rev 3418) <at> <at> -31,7 +31,7 <at> <at> APP_NAME=$0 -DIR_APP=`dirname $APP_NAME` +DIR_APP=$(cd $(dirname $APP_NAME) && pwd) APP_NAME=${APP_NAME#.} APP_NAME=${APP_NAME#/} START=$(date +%s)

Modified: trunk/buildscript-experimental/toolchain-regtest (3417 => 3418)

--- trunk/buildscript-experimental/toolchain-regtest 2009-06-01 07:25:42 UTC (rev 3417) +++ trunk/buildscript-experimental/toolchain-regtest 2009-06-01 14:47:11 UTC (rev 3418) <at> <at> -25,7 +25,7 <at> <at> APP_NAME=$0 -DIR_APP=$PWD/`dirname $APP_NAME` +DIR_APP=$(cd $(dirname $APP_NAME) && pwd) DIR_BOARDS=$DIR_APP/boards/ APP_NAME=${APP_NAME#.} APP_NAME=${APP_NAME#/}
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3418">3418</a>
Author <a href="http://blackfin.uclinux.org/gf/user/jiez/">jiez</a>
Date 2009-06-01 09:47:11 -0500 (Mon, 01 Jun 2009)
<h3>Log Message</h3>
Steal Mike's change r3126 for BuildToolChain.

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbuildscriptexperimentaltoolchainbuild">trunk/buildscript-experimental/toolchain-build</a></li>
<li><a href="#trunkbuildscriptexperimentaltoolchainregtest">trunk/buildscript-experimental/toolchain-regtest</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/buildscript-experimental/toolchain-build (3417 =&gt; 3418)</h4>
<span>
<span class="info">--- trunk/buildscript-experimental/toolchain-build	2009-06-01 07:25:42 UTC (rev 3417)
+++ trunk/buildscript-experimental/toolchain-build	2009-06-01 14:47:11 UTC (rev 3418)
</span><span class="lines"> <at>  <at>  -31,7 +31,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> APP_NAME=$0
</span>-DIR_APP=`dirname $APP_NAME`
+DIR_APP=$(cd $(dirname $APP_NAME) &amp;&amp; pwd)
<span class="cx"> APP_NAME=${APP_NAME#.}
</span><span class="cx"> APP_NAME=${APP_NAME#/}
</span><span class="cx"> START=$(date +%s)
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/buildscript-experimental/toolchain-regtest (3417 =&gt; 3418)</h4>
<span>
<span class="info">--- trunk/buildscript-experimental/toolchain-regtest	2009-06-01 07:25:42 UTC (rev 3417)
+++ trunk/buildscript-experimental/toolchain-regtest	2009-06-01 14:47:11 UTC (rev 3418)
</span><span class="lines"> <at>  <at>  -25,7 +25,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> APP_NAME=$0
</span>-DIR_APP=$PWD/`dirname $APP_NAME`
+DIR_APP=$(cd $(dirname $APP_NAME) &amp;&amp; pwd)
<span class="cx"> DIR_BOARDS=$DIR_APP/boards/
</span><span class="cx"> APP_NAME=${APP_NAME#.}
</span><span class="cx"> APP_NAME=${APP_NAME#/}
</span></span>
</div>
</div>

</div>
vapier | 2 Jun 2009 07:02
Favicon

[3419] trunk/binutils-2.17: add R_BFIN_ prefix to all reloc names and make sure they are all capitalized

Diff

Modified: trunk/binutils-2.17/bfd/ChangeLog.bfin (3418 => 3419)

--- trunk/binutils-2.17/bfd/ChangeLog.bfin 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/bfd/ChangeLog.bfin 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -1,3 +1,7 <at> <at> +2009-06-01 Mike Frysinger <michael.frysinger-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> + + * elf32-bfin.c: Rename relocs to R_BFIN_XXX. + 2009-04-13 Jie Zhang <jie.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> * cpu-bfin.c (arch_info_struct[]): Remove bf579.

Modified: trunk/binutils-2.17/bfd/elf32-bfin.c (3418 => 3419)

--- trunk/binutils-2.17/bfd/elf32-bfin.c 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/bfd/elf32-bfin.c 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -421,7 +421,7 <at> <at> static reloc_howto_type bfin_howto_table [] = { /* This reloc does nothing. . */ - HOWTO (R_unused0, /* type. */ + HOWTO (R_BFIN_UNUSED0, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -429,13 +429,13 <at> <at> 0, /* bitpos. */ complain_overflow_bitfield, /* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ - "R_unused0", /* name. */ + "R_BFIN_UNUSED0", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_pcrel5m2, /* type. */ + HOWTO (R_BFIN_PCREL5M2, /* type. */ 1, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long).. */ 4, /* bitsize. */ <at> <at> -443,13 +443,13 <at> <at> 0, /* bitpos. */ complain_overflow_unsigned, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_pcrel5m2", /* name. */ + "R_BFIN_PCREL5M2", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x0000000F, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_unused1, /* type. */ + HOWTO (R_BFIN_UNUSED1, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -457,13 +457,13 <at> <at> 0, /* bitpos. */ complain_overflow_bitfield, /* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ - "R_unused1", /* name. */ + "R_BFIN_UNUSED1", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_pcrel10, /* type. */ + HOWTO (R_BFIN_PCREL10, /* type. */ 1, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 10, /* bitsize. */ <at> <at> -471,13 +471,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_pcrel10", /* name. */ + "R_BFIN_PCREL10", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x000003FF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel12_jump, /* type. */ + HOWTO (R_BFIN_PCREL12_JUMP, /* type. */ 1, /* rightshift. */ /* the offset is actually 13 bit aligned on a word boundary so <at> <at> -489,13 +489,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_pcrel12_jump", /* name. */ + "R_BFIN_PCREL12_JUMP", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x0FFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_rimm16, /* type. */ + HOWTO (R_BFIN_RIMM16, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -503,13 +503,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_imm16_reloc, /* special_function. */ - "R_rimm16", /* name. */ + "R_BFIN_RIMM16", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x0000FFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_luimm16, /* type. */ + HOWTO (R_BFIN_LUIMM16, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -517,13 +517,13 <at> <at> 0, /* bitpos. */ complain_overflow_dont, /* complain_on_overflow. */ bfin_imm16_reloc, /* special_function. */ - "R_luimm16", /* name. */ + "R_BFIN_LUIMM16", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x0000FFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_huimm16, /* type. */ + HOWTO (R_BFIN_HUIMM16, /* type. */ 16, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -531,13 +531,13 <at> <at> 0, /* bitpos. */ complain_overflow_unsigned, /* complain_on_overflow. */ bfin_imm16_reloc, /* special_function. */ - "R_huimm16", /* name. */ + "R_BFIN_HUIMM16", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x0000FFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel12_jump_s, /* type. */ + HOWTO (R_BFIN_PCREL12_JUMP_S, /* type. */ 1, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 12, /* bitsize. */ <at> <at> -545,13 +545,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_pcrel12_jump_s", /* name. */ + "R_BFIN_PCREL12_JUMP_S", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x00000FFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel24_jump_x, /* type. */ + HOWTO (R_BFIN_PCREL24_JUMP_X, /* type. */ 1, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 24, /* bitsize. */ <at> <at> -559,13 +559,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_pcrel24_reloc, /* special_function. */ - "R_pcrel24_jump_x", /* name. */ + "R_BFIN_PCREL24_JUMP_X", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x00FFFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel24, /* type. */ + HOWTO (R_BFIN_PCREL24, /* type. */ 1, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 24, /* bitsize. */ <at> <at> -573,13 +573,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_pcrel24_reloc, /* special_function. */ - "R_pcrel24", /* name. */ + "R_BFIN_PCREL24", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x00FFFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_unusedb, /* type. */ + HOWTO (R_BFIN_UNUSEDB, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -587,13 +587,13 <at> <at> 0, /* bitpos. */ complain_overflow_dont, /* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ - "R_unusedb", /* name. */ + "R_BFIN_UNUSEDB", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_unusedc, /* type. */ + HOWTO (R_BFIN_UNUSEDC, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -601,13 +601,13 <at> <at> 0, /* bitpos. */ complain_overflow_dont, /* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ - "R_unusedc", /* name. */ + "R_BFIN_UNUSEDC", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_pcrel24_jump_l, /* type. */ + HOWTO (R_BFIN_PCREL24_JUMP_L, /* type. */ 1, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 24, /* bitsize. */ <at> <at> -615,13 +615,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_pcrel24_reloc, /* special_function. */ - "R_pcrel24_jump_l", /* name. */ + "R_BFIN_PCREL24_JUMP_L", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x00FFFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel24_call_x, /* type. */ + HOWTO (R_BFIN_PCREL24_CALL_X, /* type. */ 1, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 24, /* bitsize. */ <at> <at> -629,13 +629,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_pcrel24_reloc, /* special_function. */ - "R_pcrel24_call_x", /* name. */ + "R_BFIN_PCREL24_CALL_X", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x00FFFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_var_eq_symb, /* type. */ + HOWTO (R_BFIN_VAR_EQ_SYMB, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -643,13 +643,13 <at> <at> 0, /* bitpos. */ complain_overflow_bitfield, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_var_eq_symb", /* name. */ + "R_BFIN_VAR_EQ_SYMB", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_byte_data, /* type. */ + HOWTO (R_BFIN_BYTE_DATA, /* type. */ 0, /* rightshift. */ 0, /* size (0 = byte, 1 = short, 2 = long). */ 8, /* bitsize. */ <at> <at> -657,13 +657,13 <at> <at> 0, /* bitpos. */ complain_overflow_unsigned, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_byte_data", /* name. */ + "R_BFIN_BYTE_DATA", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0xFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_byte2_data, /* type. */ + HOWTO (R_BFIN_BYTE2_DATA, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -671,13 +671,13 <at> <at> 0, /* bitpos. */ complain_overflow_signed, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_byte2_data", /* name. */ + "R_BFIN_BYTE2_DATA", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0xFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_byte4_data, /* type. */ + HOWTO (R_BFIN_BYTE4_DATA, /* type. */ 0, /* rightshift. */ 2, /* size (0 = byte, 1 = short, 2 = long). */ 32, /* bitsize. */ <at> <at> -685,13 +685,13 <at> <at> 0, /* bitpos. */ complain_overflow_unsigned, /* complain_on_overflow. */ bfin_byte4_reloc, /* special_function. */ - "R_byte4_data", /* name. */ + "R_BFIN_BYTE4_DATA", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0xFFFFFFFF, /* dst_mask. */ TRUE), /* pcrel_offset. */ - HOWTO (R_pcrel11, /* type. */ + HOWTO (R_BFIN_PCREL11, /* type. */ 1, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 10, /* bitsize. */ <at> <at> -699,7 +699,7 <at> <at> 0, /* bitpos. */ complain_overflow_unsigned, /* complain_on_overflow. */ bfin_bfd_reloc, /* special_function. */ - "R_pcrel11", /* name. */ + "R_BFIN_PCREL11", /* name. */ FALSE, /* partial_inplace. */ 0, /* src_mask. */ 0x000003FF, /* dst_mask. */ <at> <at> -931,7 +931,7 <at> <at> static reloc_howto_type bfin_gnuext_howto_table [] = { - HOWTO (R_pltpc, /* type. */ + HOWTO (R_BFIN_PLTPC, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -939,13 +939,13 <at> <at> 0, /* bitpos. */ complain_overflow_bitfield, /* complain_on_overflow. */ bfin_pltpc_reloc, /* special_function. */ - "R_pltpc", /* name. */ + "R_BFIN_PLTPC", /* name. */ FALSE, /* partial_inplace. */ 0xffff, /* src_mask. */ 0xffff, /* dst_mask. */ FALSE), /* pcrel_offset. */ - HOWTO (R_got, /* type. */ + HOWTO (R_BFIN_GOT, /* type. */ 0, /* rightshift. */ 1, /* size (0 = byte, 1 = short, 2 = long). */ 16, /* bitsize. */ <at> <at> -953,7 +953,7 <at> <at> 0, /* bitpos. */ complain_overflow_bitfield, /* complain_on_overflow. */ bfd_elf_generic_reloc, /* special_function. */ - "R_got", /* name. */ + "R_BFIN_GOT", /* name. */ FALSE, /* partial_inplace. */ 0x7fff, /* src_mask. */ 0x7fff, /* dst_mask. */ <at> <at> -998,27 +998,27 <at> <at> static const struct bfin_reloc_map bfin_reloc_map [] = { - { BFD_RELOC_NONE, R_unused0 }, - { BFD_RELOC_BFIN_5_PCREL, R_pcrel5m2 }, - { BFD_RELOC_NONE, R_unused1 }, - { BFD_RELOC_BFIN_10_PCREL, R_pcrel10 }, - { BFD_RELOC_BFIN_12_PCREL_JUMP, R_pcrel12_jump }, - { BFD_RELOC_BFIN_16_IMM, R_rimm16 }, - { BFD_RELOC_BFIN_16_LOW, R_luimm16 }, - { BFD_RELOC_BFIN_16_HIGH, R_huimm16 }, - { BFD_RELOC_BFIN_12_PCREL_JUMP_S, R_pcrel12_jump_s }, - { BFD_RELOC_24_PCREL, R_pcrel24 }, - { BFD_RELOC_24_PCREL, R_pcrel24 }, - { BFD_RELOC_BFIN_24_PCREL_JUMP_L, R_pcrel24_jump_l }, - { BFD_RELOC_NONE, R_unusedb }, - { BFD_RELOC_NONE, R_unusedc }, - { BFD_RELOC_BFIN_24_PCREL_CALL_X, R_pcrel24_call_x }, - { BFD_RELOC_8, R_byte_data }, - { BFD_RELOC_16, R_byte2_data }, - { BFD_RELOC_32, R_byte4_data }, - { BFD_RELOC_BFIN_11_PCREL, R_pcrel11 }, - { BFD_RELOC_BFIN_GOT, R_got }, - { BFD_RELOC_BFIN_PLTPC, R_pltpc }, + { BFD_RELOC_NONE, R_BFIN_UNUSED0 }, + { BFD_RELOC_BFIN_5_PCREL, R_BFIN_PCREL5M2 }, + { BFD_RELOC_NONE, R_BFIN_UNUSED1 }, + { BFD_RELOC_BFIN_10_PCREL, R_BFIN_PCREL10 }, + { BFD_RELOC_BFIN_12_PCREL_JUMP, R_BFIN_PCREL12_JUMP }, + { BFD_RELOC_BFIN_16_IMM, R_BFIN_RIMM16 }, + { BFD_RELOC_BFIN_16_LOW, R_BFIN_LUIMM16 }, + { BFD_RELOC_BFIN_16_HIGH, R_BFIN_HUIMM16 }, + { BFD_RELOC_BFIN_12_PCREL_JUMP_S, R_BFIN_PCREL12_JUMP_S }, + { BFD_RELOC_24_PCREL, R_BFIN_PCREL24 }, + { BFD_RELOC_24_PCREL, R_BFIN_PCREL24 }, + { BFD_RELOC_BFIN_24_PCREL_JUMP_L, R_BFIN_PCREL24_JUMP_L }, + { BFD_RELOC_NONE, R_BFIN_UNUSEDB }, + { BFD_RELOC_NONE, R_BFIN_UNUSEDC }, + { BFD_RELOC_BFIN_24_PCREL_CALL_X, R_BFIN_PCREL24_CALL_X }, + { BFD_RELOC_8, R_BFIN_BYTE_DATA }, + { BFD_RELOC_16, R_BFIN_BYTE2_DATA }, + { BFD_RELOC_32, R_BFIN_BYTE4_DATA }, + { BFD_RELOC_BFIN_11_PCREL, R_BFIN_PCREL11 }, + { BFD_RELOC_BFIN_GOT, R_BFIN_GOT }, + { BFD_RELOC_BFIN_PLTPC, R_BFIN_PLTPC }, { BFD_RELOC_BFIN_GOT17M4, R_BFIN_GOT17M4 }, { BFD_RELOC_BFIN_GOTHI, R_BFIN_GOTHI }, <at> <at> -1183,7 +1183,7 <at> <at> return FALSE; break; - case R_got: + case R_BFIN_GOT: if (h != NULL && strcmp (h->root.root.string, "__GLOBAL_OFFSET_TABLE_") == 0) break; <at> <at> -1296,7 +1296,7 <at> <at> { int r_type = ELF32_R_TYPE (rel->r_info); - if (r_type == R_pcrel24 || r_type == R_pcrel24_jump_l) + if (r_type == R_BFIN_PCREL24 || r_type == R_BFIN_PCREL24_JUMP_L) { bfd_reloc_status_type r = bfd_reloc_ok; bfd_vma x; <at> <at> -1436,7 +1436,7 <at> <at> case R_BFIN_GNU_VTENTRY: return bfd_reloc_ok; - case R_got: + case R_BFIN_GOT: /* Relocation is to the address of the entry for this symbol in the global offset table. */ if (h != NULL <at> <at> -1529,7 +1529,7 <at> <at> outrel.r_offset = (sgot->output_section->vma + sgot->output_offset + off); outrel.r_info = - ELF32_R_INFO (0, R_pcrel24); + ELF32_R_INFO (0, R_BFIN_PCREL24); outrel.r_addend = relocation; loc = s->contents; loc += <at> <at> -1680,7 +1680,7 <at> <at> switch (ELF32_R_TYPE (rel->r_info)) { - case R_got: + case R_BFIN_GOT: r_symndx = ELF32_R_SYM (rel->r_info); if (r_symndx >= symtab_hdr->sh_info) { <at> <at> -1898,7 +1898,7 <at> <at> needed for this symbol. */ unsigned done:1; - /* The number of R_byte4_data, R_BFIN_FUNCDESC and R_BFIN_FUNCDESC_VALUE + /* The number of R_BFIN_BYTE4_DATA, R_BFIN_FUNCDESC and R_BFIN_FUNCDESC_VALUE relocations referencing the symbol. */ unsigned relocs32, relocsfd, relocsfdv; <at> <at> -2231,7 +2231,7 <at> <at> + bfinfdpic_got_section (info) ->output_section->vma + bfinfdpic_got_section (info)->output_offset, - R_byte4_data, idx, ad, entry); + R_BFIN_BYTE4_DATA, idx, ad, entry); bfd_put_32 (output_bfd, ad, bfinfdpic_got_section (info)->contents <at> <at> -2283,7 +2283,7 <at> <at> so reference it directly. */ if (elf_hash_table (info)->dynamic_sections_created) BFD_ASSERT (entry->privfd); - reloc = R_byte4_data; + reloc = R_BFIN_BYTE4_DATA; idx = elf_section_data (bfinfdpic_got_section (info) ->output_section)->dynindx; ad = bfinfdpic_got_section (info)->output_offset <at> <at> -2702,9 +2702,9 <at> <at> switch (r_type) { - case R_pcrel24: - case R_pcrel24_jump_l: - case R_byte4_data: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: + case R_BFIN_BYTE4_DATA: if (! IS_FDPIC (output_bfd)) goto non_fdpic; <at> <at> -2764,8 +2764,8 <at> <at> switch (r_type) { - case R_pcrel24: - case R_pcrel24_jump_l: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: check_segment[0] = isec_segment; if (! IS_FDPIC (output_bfd)) check_segment[1] = isec_segment; <at> <at> -2863,7 +2863,7 <at> <at> /* Otherwise, we know we have a private function descriptor, so reference it directly. */ BFD_ASSERT (picrel->privfd); - r_type = R_byte4_data; + r_type = R_BFIN_BYTE4_DATA; dynindx = elf_section_data (bfinfdpic_got_section (info) ->output_section)->dynindx; addend = bfinfdpic_got_section (info)->output_offset <at> <at> -2930,7 +2930,7 <at> <at> _bfinfdpic_add_dyn_reloc (output_bfd, bfinfdpic_gotrel_section (info), 0, - R_unused0, + R_BFIN_UNUSED0, dynindx, addend, picrel); else _bfinfdpic_add_dyn_reloc (output_bfd, <at> <at> -2953,7 +2953,7 <at> <at> check_segment[0] = check_segment[1] = got_segment; break; - case R_byte4_data: + case R_BFIN_BYTE4_DATA: if (! IS_FDPIC (output_bfd)) { check_segment[0] = check_segment[1] = -1; <at> <at> -3074,7 +3074,7 <at> <at> if (offset >= (bfd_vma)-2) _bfinfdpic_add_dyn_reloc (output_bfd, bfinfdpic_gotrel_section (info), - 0, R_unused0, dynindx, addend, picrel); + 0, R_BFIN_UNUSED0, dynindx, addend, picrel); else _bfinfdpic_add_dyn_reloc (output_bfd, bfinfdpic_gotrel_section (info), <at> <at> -3190,8 +3190,8 <at> <at> switch (r_type) { - case R_pcrel24: - case R_pcrel24_jump_l: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: if (! IS_FDPIC (output_bfd) || ! picrel->plt) break; /* Fall through. */ <at> <at> -3321,8 +3321,8 <at> <at> switch (ELF32_R_TYPE (rel->r_info)) { - case R_pcrel24: - case R_pcrel24_jump_l: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: picrel->call--; break; <at> <at> -3332,7 +3332,7 <at> <at> picrel->relocs32++; /* Fall through. */ - case R_byte4_data: + case R_BFIN_BYTE4_DATA: picrel->sym--; if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) picrel->relocs32--; <at> <at> -4703,9 +4703,9 <at> <at> if (! IS_FDPIC (abfd)) goto bad_reloc; /* Fall through. */ - case R_pcrel24: - case R_pcrel24_jump_l: - case R_byte4_data: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: + case R_BFIN_BYTE4_DATA: if (IS_FDPIC (abfd) && ! dynobj) { elf_hash_table (info)->dynobj = dynobj = abfd; <at> <at> -4749,8 +4749,8 <at> <at> switch (ELF32_R_TYPE (rel->r_info)) { - case R_pcrel24: - case R_pcrel24_jump_l: + case R_BFIN_PCREL24: + case R_BFIN_PCREL24_JUMP_L: if (IS_FDPIC (abfd)) picrel->call++; break; <at> <at> -4761,7 +4761,7 <at> <at> picrel->relocs32--; /* Fall through. */ - case R_byte4_data: + case R_BFIN_BYTE4_DATA: if (! IS_FDPIC (abfd)) break; <at> <at> -4822,10 +4822,10 <at> <at> return FALSE; break; - case R_huimm16: - case R_luimm16: - case R_pcrel12_jump_s: - case R_pcrel10: + case R_BFIN_HUIMM16: + case R_BFIN_LUIMM16: + case R_BFIN_PCREL12_JUMP_S: + case R_BFIN_PCREL10: break; default: <at> <at> -5147,7 +5147,7 <at> <at> || h->dynindx == -1 || h->forced_local) && h->def_regular) { fprintf(stderr, "*** check this relocation %s\n", __FUNCTION__); - rela.r_info = ELF32_R_INFO (0, R_pcrel24); + rela.r_info = ELF32_R_INFO (0, R_BFIN_PCREL24); rela.r_addend = bfd_get_signed_32 (output_bfd, (sgot->contents + <at> <at> -5158,7 +5158,7 <at> <at> { bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + (h->got.offset & ~(bfd_vma) 1)); - rela.r_info = ELF32_R_INFO (h->dynindx, R_got); + rela.r_info = ELF32_R_INFO (h->dynindx, R_BFIN_GOT); rela.r_addend = 0; } <at> <at> -5553,7 +5553,7 <at> <at> characters. */ /* We can only relocate absolute longword relocs at run time. */ - if (ELF32_R_TYPE (irel->r_info) != (int) R_byte4_data) + if (ELF32_R_TYPE (irel->r_info) != (int) R_BFIN_BYTE4_DATA) { *errmsg = _("unsupported reloc type"); bfd_set_error (bfd_error_bad_value);

Modified: trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin (3418 => 3419)

--- trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -1,3 +1,7 <at> <at> +2009-06-01 Mike Frysinger <michael.frysinger-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> + + * gas/bfin/loop.d, gas/bfin/reloc.d: Rename relocs to R_BFIN_XXX. + 2009-05-05 Jie Zhang <jie.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> * gas/bfin/search.s: Clean up.

Modified: trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d (3418 => 3419)

--- trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -4,4 +4,4 <at> <at> Relocation section '\.rela\.text' .*: .* .* R_BFIN_GOT17M4 0+00 _foo \+ 0 -.* R_pcrel24 0+00 _bar \+ 0 +.* R_BFIN_PCREL24 0+00 _bar \+ 0

Modified: trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d (3418 => 3419)

--- trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -4,17 +4,17 <at> <at> RELOCATION RECORDS FOR \[\.text\]: OFFSET TYPE VALUE -0*0004 R_pcrel24 _call_data1 -0*0008 R_rimm16 .data -0*000a R_pcrel12_jump_s .text\+0x00000018 -0*000e R_pcrel24 call_data1\+0x00000008 -0*0012 R_huimm16 .data\+0x00000002 -0*0016 R_luimm16 .data\+0x00000004 -0*001a R_huimm16 load_extern1 +0*0004 R_BFIN_PCREL24 _call_data1 +0*0008 R_BFIN_RIMM16 .data +0*000a R_BFIN_PCREL12_JUMP_S .text\+0x00000018 +0*000e R_BFIN_PCREL24 call_data1\+0x00000008 +0*0012 R_BFIN_HUIMM16 .data\+0x00000002 +0*0016 R_BFIN_LUIMM16 .data\+0x00000004 +0*001a R_BFIN_HUIMM16 load_extern1 RELOCATION RECORDS FOR \[\.data\]: OFFSET TYPE VALUE -0*0006 R_byte_data load_extern1 +0*0006 R_BFIN_BYTE_DATA load_extern1

Modified: trunk/binutils-2.17/include/elf/ChangeLog.bfin (3418 => 3419)

--- trunk/binutils-2.17/include/elf/ChangeLog.bfin 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/include/elf/ChangeLog.bfin 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -1,3 +1,7 <at> <at> +2009-06-01 Mike Frysinger <michael.frysinger-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> + + * bfin.h: Rename relocs to R_BFIN_XXX. + 2006-08-17 Jie Zhang <jie.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> 2006-05-27 H.J. Lu <hongjiu.lu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Modified: trunk/binutils-2.17/include/elf/bfin.h (3418 => 3419)

--- trunk/binutils-2.17/include/elf/bfin.h 2009-06-01 14:47:11 UTC (rev 3418) +++ trunk/binutils-2.17/include/elf/bfin.h 2009-06-02 05:02:01 UTC (rev 3419) <at> <at> -19,30 +19,30 <at> <at> #ifndef _ELF_BFIN_H #define _ELF_BFIN_H - + #include "elf/reloc-macros.h" START_RELOC_NUMBERS (elf_bfin_reloc_type) - RELOC_NUMBER (R_unused0, 0x00) /* relocation type 0 is not defined*/ - RELOC_NUMBER (R_pcrel5m2, 0x01) /*LSETUP part a*/ - RELOC_NUMBER (R_unused1, 0x02) /* relocation type 2 is not defined*/ - RELOC_NUMBER (R_pcrel10, 0x03) /* type 3, 0x00) if cc jump <target> */ - RELOC_NUMBER (R_pcrel12_jump, 0x04) /* type 4, 0x00) jump <target> */ - RELOC_NUMBER (R_rimm16, 0x05) /* type 0x5, 0x00) rN = <target> */ - RELOC_NUMBER (R_luimm16, 0x06) /* # 0x6, 0x00) preg.l=<target> Load imm 16 to lower half */ - RELOC_NUMBER (R_huimm16, 0x07) /* # 0x7, 0x00) preg.h=<target> Load imm 16 to upper half*/ - RELOC_NUMBER (R_pcrel12_jump_s, 0x08) /* # 0x8 jump.s <target> */ - RELOC_NUMBER (R_pcrel24_jump_x, 0x09) /* # 0x9 jump.x <target> */ - RELOC_NUMBER (R_pcrel24, 0x0a) /* # 0xa call <target> , 0x00) not expandable*/ - RELOC_NUMBER (R_unusedb, 0x0b) /* # 0xb not generated */ - RELOC_NUMBER (R_unusedc, 0x0c) /* # 0xc not used */ - RELOC_NUMBER (R_pcrel24_jump_l, 0x0d) /*0xd jump.l <target>*/ - RELOC_NUMBER (R_pcrel24_call_x, 0x0e) /* 0xE, 0x00) call.x <target> if <target> is above 24 bit limit call through P1 */ - RELOC_NUMBER (R_var_eq_symb, 0x0f) /* 0xf, 0x00) linker should treat it same as 0x12 */ - RELOC_NUMBER (R_byte_data, 0x10) /* 0x10, 0x00) .byte var = symbol */ - RELOC_NUMBER (R_byte2_data, 0x11) /* 0x11, 0x00) .byte2 var = symbol */ - RELOC_NUMBER (R_byte4_data, 0x12) /* 0x12, 0x00) .byte4 var = symbol and .var var=symbol */ - RELOC_NUMBER (R_pcrel11, 0x13) /* 0x13, 0x00) lsetup part b */ + RELOC_NUMBER (R_BFIN_UNUSED0, 0x00) /* relocation type 0 is not defined */ + RELOC_NUMBER (R_BFIN_PCREL5M2, 0x01) /* LSETUP part a */ + RELOC_NUMBER (R_BFIN_UNUSED1, 0x02) /* relocation type 2 is not defined */ + RELOC_NUMBER (R_BFIN_PCREL10, 0x03) /* type 3, 0x00) if cc jump <target> */ + RELOC_NUMBER (R_BFIN_PCREL12_JUMP, 0x04) /* type 4, 0x00) jump <target> */ + RELOC_NUMBER (R_BFIN_RIMM16, 0x05) /* type 0x5, 0x00) rN = <target> */ + RELOC_NUMBER (R_BFIN_LUIMM16, 0x06) /* # 0x6, 0x00) preg.l=<target> Load imm 16 to lower half */ + RELOC_NUMBER (R_BFIN_HUIMM16, 0x07) /* # 0x7, 0x00) preg.h=<target> Load imm 16 to upper half */ + RELOC_NUMBER (R_BFIN_PCREL12_JUMP_S, 0x08) /* # 0x8 jump.s <target> */ + RELOC_NUMBER (R_BFIN_PCREL24_JUMP_X, 0x09) /* # 0x9 jump.x <target> */ + RELOC_NUMBER (R_BFIN_PCREL24, 0x0a) /* # 0xa call <target> , 0x00) not expandable */ + RELOC_NUMBER (R_BFIN_UNUSEDB, 0x0b) /* # 0xb not generated */ + RELOC_NUMBER (R_BFIN_UNUSEDC, 0x0c) /* # 0xc not used */ + RELOC_NUMBER (R_BFIN_PCREL24_JUMP_L, 0x0d) /* 0xd jump.l <target> */ + RELOC_NUMBER (R_BFIN_PCREL24_CALL_X, 0x0e) /* 0xE, 0x00) call.x <target> if <target> is above 24 bit limit call through P1 */ + RELOC_NUMBER (R_BFIN_VAR_EQ_SYMB, 0x0f) /* 0xf, 0x00) linker should treat it same as 0x12 */ + RELOC_NUMBER (R_BFIN_BYTE_DATA, 0x10) /* 0x10, 0x00) .byte var = symbol */ + RELOC_NUMBER (R_BFIN_BYTE2_DATA, 0x11) /* 0x11, 0x00) .byte2 var = symbol */ + RELOC_NUMBER (R_BFIN_BYTE4_DATA, 0x12) /* 0x12, 0x00) .byte4 var = symbol and .var var=symbol */ + RELOC_NUMBER (R_BFIN_PCREL11, 0x13) /* 0x13, 0x00) lsetup part b */ RELOC_NUMBER (R_BFIN_GOT17M4, 0x14) RELOC_NUMBER (R_BFIN_GOTHI, 0x15) RELOC_NUMBER (R_BFIN_GOTLO, 0x16) <at> <at> -58,31 +58,31 <at> <at> RELOC_NUMBER (R_BFIN_GOTOFFHI, 0x20) RELOC_NUMBER (R_BFIN_GOTOFFLO, 0x21) - RELOC_NUMBER (R_push, 0xE0) - RELOC_NUMBER (R_const, 0xE1) - RELOC_NUMBER (R_add, 0xE2) - RELOC_NUMBER (R_sub, 0xE3) - RELOC_NUMBER (R_mult, 0xE4) - RELOC_NUMBER (R_div, 0xE5) - RELOC_NUMBER (R_mod, 0xE6) - RELOC_NUMBER (R_lshift, 0xE7) - RELOC_NUMBER (R_rshift, 0xE8) - RELOC_NUMBER (R_and, 0xE9) - RELOC_NUMBER (R_or, 0xEA) - RELOC_NUMBER (R_xor, 0xEB) - RELOC_NUMBER (R_land, 0xEC) - RELOC_NUMBER (R_lor, 0xED) - RELOC_NUMBER (R_len, 0xEE) - RELOC_NUMBER (R_neg, 0xEF) - RELOC_NUMBER (R_comp, 0xF0) - RELOC_NUMBER (R_page, 0xF1) - RELOC_NUMBER (R_hwpage, 0xF2) - RELOC_NUMBER (R_addr, 0xF3) - RELOC_NUMBER (R_pltpc, 0x40) /* PLT gnu only relocation */ - RELOC_NUMBER (R_got, 0x41) /* GOT gnu only relocation */ + RELOC_NUMBER (R_BFIN_PUSH, 0xE0) + RELOC_NUMBER (R_BFIN_CONST, 0xE1) + RELOC_NUMBER (R_BFIN_ADD, 0xE2) + RELOC_NUMBER (R_BFIN_SUB, 0xE3) + RELOC_NUMBER (R_BFIN_MULT, 0xE4) + RELOC_NUMBER (R_BFIN_DIV, 0xE5) + RELOC_NUMBER (R_BFIN_MOD, 0xE6) + RELOC_NUMBER (R_BFIN_LSHIFT, 0xE7) + RELOC_NUMBER (R_BFIN_RSHIFT, 0xE8) + RELOC_NUMBER (R_BFIN_AND, 0xE9) + RELOC_NUMBER (R_BFIN_OR, 0xEA) + RELOC_NUMBER (R_BFIN_XOR, 0xEB) + RELOC_NUMBER (R_BFIN_LAND, 0xEC) + RELOC_NUMBER (R_BFIN_LOR, 0xED) + RELOC_NUMBER (R_BFIN_LEN, 0xEE) + RELOC_NUMBER (R_BFIN_NEG, 0xEF) + RELOC_NUMBER (R_BFIN_COMP, 0xF0) + RELOC_NUMBER (R_BFIN_PAGE, 0xF1) + RELOC_NUMBER (R_BFIN_HWPAGE, 0xF2) + RELOC_NUMBER (R_BFIN_ADDR, 0xF3) + RELOC_NUMBER (R_BFIN_PLTPC, 0x40) /* PLT gnu only relocation */ + RELOC_NUMBER (R_BFIN_GOT, 0x41) /* GOT gnu only relocation */ RELOC_NUMBER (R_BFIN_GNU_VTINHERIT, 0x42) /* C++, gnu only */ RELOC_NUMBER (R_BFIN_GNU_VTENTRY, 0x43) /* C++, gnu only */ -END_RELOC_NUMBERS (R_max) +END_RELOC_NUMBERS (R_BFIN_max) /* Processor specific flags for the ELF header e_flags field. */ #define EF_BFIN_PIC 0x00000001 /* -fpic */
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3419">3419</a>
Author <a href="http://blackfin.uclinux.org/gf/user/vapier/">vapier</a>
Date 2009-06-02 00:02:01 -0500 (Tue, 02 Jun 2009)
<h3>Log Message</h3>
add R_BFIN_ prefix to all reloc names and make sure they are all capitalized

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbinutils217bfdChangeLogbfin">trunk/binutils-2.17/bfd/ChangeLog.bfin</a></li>
<li><a href="#trunkbinutils217bfdelf32bfinc">trunk/binutils-2.17/bfd/elf32-bfin.c</a></li>
<li><a href="#trunkbinutils217gastestsuiteChangeLogbfin">trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin</a></li>
<li><a href="#trunkbinutils217gastestsuitegasbfinloopd">trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d</a></li>
<li><a href="#trunkbinutils217gastestsuitegasbfinrelocd">trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d</a></li>
<li><a href="#trunkbinutils217includeelfChangeLogbfin">trunk/binutils-2.17/include/elf/ChangeLog.bfin</a></li>
<li><a href="#trunkbinutils217includeelfbfinh">trunk/binutils-2.17/include/elf/bfin.h</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/bfd/ChangeLog.bfin (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/bfd/ChangeLog.bfin	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/bfd/ChangeLog.bfin	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -1,3 +1,7  <at>  <at> 
</span>+2009-06-01  Mike Frysinger  &lt;michael.frysinger@...&gt;
+
+	* elf32-bfin.c: Rename relocs to R_BFIN_XXX.
+
<span class="cx"> 2009-04-13  Jie Zhang  &lt;jie.zhang@...&gt;
</span><span class="cx"> 
</span><span class="cx"> 	* cpu-bfin.c (arch_info_struct[]): Remove bf579.
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/bfd/elf32-bfin.c (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/bfd/elf32-bfin.c	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/bfd/elf32-bfin.c	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -421,7 +421,7  <at>  <at> 
</span><span class="cx"> static reloc_howto_type bfin_howto_table [] =
</span><span class="cx"> {
</span><span class="cx">   /* This reloc does nothing. .  */
</span>-  HOWTO (R_unused0,		/* type.  */
+  HOWTO (R_BFIN_UNUSED0,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -429,13 +429,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_bitfield, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfd_elf_generic_reloc,	/* special_function.  */
</span>-	 "R_unused0",		/* name.  */
+	 "R_BFIN_UNUSED0",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0,			/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel5m2,		/* type.  */
+  HOWTO (R_BFIN_PCREL5M2,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long)..  */
</span><span class="cx"> 	 4,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -443,13 +443,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_unsigned, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_pcrel5m2",		/* name.  */
+	 "R_BFIN_PCREL5M2",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x0000000F,		/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_unused1,		/* type.  */
+  HOWTO (R_BFIN_UNUSED1,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -457,13 +457,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_bitfield, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfd_elf_generic_reloc,	/* special_function.  */
</span>-	 "R_unused1",		/* name.  */
+	 "R_BFIN_UNUSED1",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0,			/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel10,		/* type.  */
+  HOWTO (R_BFIN_PCREL10,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 10,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -471,13 +471,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_pcrel10",		/* name.  */
+	 "R_BFIN_PCREL10",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x000003FF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel12_jump,	/* type.  */
+  HOWTO (R_BFIN_PCREL12_JUMP,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 				/* the offset is actually 13 bit
</span><span class="cx"> 				   aligned on a word boundary so
</span><span class="lines"> <at>  <at>  -489,13 +489,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_pcrel12_jump",	/* name.  */
+	 "R_BFIN_PCREL12_JUMP",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x0FFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_rimm16,		/* type.  */
+  HOWTO (R_BFIN_RIMM16,		/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -503,13 +503,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_imm16_reloc,	/* special_function.  */
</span>-	 "R_rimm16",		/* name.  */
+	 "R_BFIN_RIMM16",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x0000FFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_luimm16,		/* type.  */
+  HOWTO (R_BFIN_LUIMM16,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -517,13 +517,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_dont, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_imm16_reloc,	/* special_function.  */
</span>-	 "R_luimm16",		/* name.  */
+	 "R_BFIN_LUIMM16",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x0000FFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_huimm16,		/* type.  */
+  HOWTO (R_BFIN_HUIMM16,	/* type.  */
<span class="cx"> 	 16,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -531,13 +531,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_unsigned, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_imm16_reloc,	/* special_function.  */
</span>-	 "R_huimm16",		/* name.  */
+	 "R_BFIN_HUIMM16",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x0000FFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel12_jump_s,	/* type.  */
+  HOWTO (R_BFIN_PCREL12_JUMP_S,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 12,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -545,13 +545,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_pcrel12_jump_s",	/* name.  */
+	 "R_BFIN_PCREL12_JUMP_S", /* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x00000FFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel24_jump_x,	/* type.  */
+  HOWTO (R_BFIN_PCREL24_JUMP_X,	/* type.  */
<span class="cx">          1,			/* rightshift.  */
</span><span class="cx">          2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx">          24,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -559,13 +559,13  <at>  <at> 
</span><span class="cx">          0,			/* bitpos.  */
</span><span class="cx">          complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx">          bfin_pcrel24_reloc,	/* special_function.  */
</span>-         "R_pcrel24_jump_x",	/* name.  */
+	"R_BFIN_PCREL24_JUMP_X", /* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x00FFFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel24,		/* type.  */
+  HOWTO (R_BFIN_PCREL24,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 24,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -573,13 +573,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_pcrel24_reloc,	/* special_function.  */
</span>-	 "R_pcrel24",		/* name.  */
+	 "R_BFIN_PCREL24",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x00FFFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_unusedb,		/* type.  */
+  HOWTO (R_BFIN_UNUSEDB,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -587,13 +587,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_dont, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfd_elf_generic_reloc,	/* special_function.  */
</span>-	 "R_unusedb",		/* name.  */
+	 "R_BFIN_UNUSEDB",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0,			/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_unusedc,		/* type.  */
+  HOWTO (R_BFIN_UNUSEDC,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -601,13 +601,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_dont, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfd_elf_generic_reloc,	/* special_function.  */
</span>-	 "R_unusedc",		/* name.  */
+	 "R_BFIN_UNUSEDC",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0,			/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel24_jump_l,	/* type.  */
+  HOWTO (R_BFIN_PCREL24_JUMP_L,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 24,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -615,13 +615,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_pcrel24_reloc,	/* special_function.  */
</span>-	 "R_pcrel24_jump_l",	/* name.  */
+	 "R_BFIN_PCREL24_JUMP_L", /* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x00FFFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel24_call_x,	/* type.  */
+  HOWTO (R_BFIN_PCREL24_CALL_X,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 24,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -629,13 +629,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_pcrel24_reloc,	/* special_function.  */
</span>-	 "R_pcrel24_call_x",	/* name.  */
+	 "R_BFIN_PCREL24_CALL_X", /* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x00FFFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_var_eq_symb,		/* type.  */
+  HOWTO (R_BFIN_VAR_EQ_SYMB,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -643,13 +643,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_bitfield, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_var_eq_symb",		/* name.  */
+	 "R_BFIN_VAR_EQ_SYMB",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0,			/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_byte_data,		/* type.  */
+  HOWTO (R_BFIN_BYTE_DATA,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 0,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 8,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -657,13 +657,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_unsigned, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_byte_data",		/* name.  */
+	 "R_BFIN_BYTE_DATA",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0xFF,			/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_byte2_data,		/* type.  */
+  HOWTO (R_BFIN_BYTE2_DATA,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -671,13 +671,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_signed, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_byte2_data",	/* name.  */
+	 "R_BFIN_BYTE2_DATA",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0xFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_byte4_data,		/* type.  */
+  HOWTO (R_BFIN_BYTE4_DATA,	/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 2,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 32,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -685,13 +685,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_unsigned, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_byte4_reloc,	/* special_function.  */
</span>-	 "R_byte4_data",	/* name.  */
+	 "R_BFIN_BYTE4_DATA",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0xFFFFFFFF,		/* dst_mask.  */
</span><span class="cx"> 	 TRUE),			/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_pcrel11,		/* type.  */
+  HOWTO (R_BFIN_PCREL11,	/* type.  */
<span class="cx"> 	 1,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 10,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -699,7 +699,7  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_unsigned, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_bfd_reloc,	/* special_function.  */
</span>-	 "R_pcrel11",		/* name.  */
+	 "R_BFIN_PCREL11",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0,			/* src_mask.  */
</span><span class="cx"> 	 0x000003FF,		/* dst_mask.  */
</span><span class="lines"> <at>  <at>  -931,7 +931,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> static reloc_howto_type bfin_gnuext_howto_table [] =
</span><span class="cx"> {
</span>-  HOWTO (R_pltpc,		/* type.  */
+  HOWTO (R_BFIN_PLTPC,		/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -939,13 +939,13  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_bitfield, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfin_pltpc_reloc,	/* special_function.  */
</span>-	 "R_pltpc",		/* name.  */
+	 "R_BFIN_PLTPC",	/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0xffff,		/* src_mask.  */
</span><span class="cx"> 	 0xffff,		/* dst_mask.  */
</span><span class="cx"> 	 FALSE),		/* pcrel_offset.  */
</span><span class="cx"> 
</span>-  HOWTO (R_got,			/* type.  */
+  HOWTO (R_BFIN_GOT,		/* type.  */
<span class="cx"> 	 0,			/* rightshift.  */
</span><span class="cx"> 	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
</span><span class="cx"> 	 16,			/* bitsize.  */
</span><span class="lines"> <at>  <at>  -953,7 +953,7  <at>  <at> 
</span><span class="cx"> 	 0,			/* bitpos.  */
</span><span class="cx"> 	 complain_overflow_bitfield, /* complain_on_overflow.  */
</span><span class="cx"> 	 bfd_elf_generic_reloc,	/* special_function.  */
</span>-	 "R_got",		/* name.  */
+	 "R_BFIN_GOT",		/* name.  */
<span class="cx"> 	 FALSE,			/* partial_inplace.  */
</span><span class="cx"> 	 0x7fff,		/* src_mask.  */
</span><span class="cx"> 	 0x7fff,		/* dst_mask.  */
</span><span class="lines"> <at>  <at>  -998,27 +998,27  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> static const struct bfin_reloc_map bfin_reloc_map [] =
</span><span class="cx"> {
</span>-  { BFD_RELOC_NONE,			R_unused0 },
-  { BFD_RELOC_BFIN_5_PCREL,		R_pcrel5m2 },
-  { BFD_RELOC_NONE,			R_unused1 },
-  { BFD_RELOC_BFIN_10_PCREL,		R_pcrel10 },
-  { BFD_RELOC_BFIN_12_PCREL_JUMP,	R_pcrel12_jump },
-  { BFD_RELOC_BFIN_16_IMM,		R_rimm16 },
-  { BFD_RELOC_BFIN_16_LOW,		R_luimm16 },
-  { BFD_RELOC_BFIN_16_HIGH,		R_huimm16 },
-  { BFD_RELOC_BFIN_12_PCREL_JUMP_S,	R_pcrel12_jump_s },
-  { BFD_RELOC_24_PCREL,			R_pcrel24 },
-  { BFD_RELOC_24_PCREL,			R_pcrel24 },
-  { BFD_RELOC_BFIN_24_PCREL_JUMP_L,	R_pcrel24_jump_l },
-  { BFD_RELOC_NONE,			R_unusedb },
-  { BFD_RELOC_NONE,			R_unusedc },
-  { BFD_RELOC_BFIN_24_PCREL_CALL_X,	R_pcrel24_call_x },
-  { BFD_RELOC_8,			R_byte_data },
-  { BFD_RELOC_16,			R_byte2_data },
-  { BFD_RELOC_32,			R_byte4_data },
-  { BFD_RELOC_BFIN_11_PCREL,		R_pcrel11 },
-  { BFD_RELOC_BFIN_GOT,			R_got },
-  { BFD_RELOC_BFIN_PLTPC,		R_pltpc },
+  { BFD_RELOC_NONE,			R_BFIN_UNUSED0 },
+  { BFD_RELOC_BFIN_5_PCREL,		R_BFIN_PCREL5M2 },
+  { BFD_RELOC_NONE,			R_BFIN_UNUSED1 },
+  { BFD_RELOC_BFIN_10_PCREL,		R_BFIN_PCREL10 },
+  { BFD_RELOC_BFIN_12_PCREL_JUMP,	R_BFIN_PCREL12_JUMP },
+  { BFD_RELOC_BFIN_16_IMM,		R_BFIN_RIMM16 },
+  { BFD_RELOC_BFIN_16_LOW,		R_BFIN_LUIMM16 },
+  { BFD_RELOC_BFIN_16_HIGH,		R_BFIN_HUIMM16 },
+  { BFD_RELOC_BFIN_12_PCREL_JUMP_S,	R_BFIN_PCREL12_JUMP_S },
+  { BFD_RELOC_24_PCREL,			R_BFIN_PCREL24 },
+  { BFD_RELOC_24_PCREL,			R_BFIN_PCREL24 },
+  { BFD_RELOC_BFIN_24_PCREL_JUMP_L,	R_BFIN_PCREL24_JUMP_L },
+  { BFD_RELOC_NONE,			R_BFIN_UNUSEDB },
+  { BFD_RELOC_NONE,			R_BFIN_UNUSEDC },
+  { BFD_RELOC_BFIN_24_PCREL_CALL_X,	R_BFIN_PCREL24_CALL_X },
+  { BFD_RELOC_8,			R_BFIN_BYTE_DATA },
+  { BFD_RELOC_16,			R_BFIN_BYTE2_DATA },
+  { BFD_RELOC_32,			R_BFIN_BYTE4_DATA },
+  { BFD_RELOC_BFIN_11_PCREL,		R_BFIN_PCREL11 },
+  { BFD_RELOC_BFIN_GOT,			R_BFIN_GOT },
+  { BFD_RELOC_BFIN_PLTPC,		R_BFIN_PLTPC },
<span class="cx"> 
</span><span class="cx">   { BFD_RELOC_BFIN_GOT17M4,      R_BFIN_GOT17M4 },
</span><span class="cx">   { BFD_RELOC_BFIN_GOTHI,      R_BFIN_GOTHI },
</span><span class="lines"> <at>  <at>  -1183,7 +1183,7  <at>  <at> 
</span><span class="cx">             return FALSE;
</span><span class="cx">           break;
</span><span class="cx"> 
</span>-	case R_got:
+	case R_BFIN_GOT:
<span class="cx"> 	  if (h != NULL
</span><span class="cx"> 	      &amp;&amp; strcmp (h-&gt;root.root.string, "__GLOBAL_OFFSET_TABLE_") == 0)
</span><span class="cx"> 	    break;
</span><span class="lines"> <at>  <at>  -1296,7 +1296,7  <at>  <at> 
</span><span class="cx"> {
</span><span class="cx">   int r_type = ELF32_R_TYPE (rel-&gt;r_info);
</span><span class="cx"> 
</span>-  if (r_type == R_pcrel24 || r_type == R_pcrel24_jump_l)
+  if (r_type == R_BFIN_PCREL24 || r_type == R_BFIN_PCREL24_JUMP_L)
<span class="cx">     {
</span><span class="cx">       bfd_reloc_status_type r = bfd_reloc_ok;
</span><span class="cx">       bfd_vma x;
</span><span class="lines"> <at>  <at>  -1436,7 +1436,7  <at>  <at> 
</span><span class="cx"> 	case R_BFIN_GNU_VTENTRY:
</span><span class="cx"> 	  return bfd_reloc_ok;
</span><span class="cx"> 
</span>-	case R_got:
+	case R_BFIN_GOT:
<span class="cx"> 	  /* Relocation is to the address of the entry for this symbol
</span><span class="cx"> 	     in the global offset table.  */
</span><span class="cx"> 	  if (h != NULL
</span><span class="lines"> <at>  <at>  -1529,7 +1529,7  <at>  <at> 
</span><span class="cx"> 			outrel.r_offset = (sgot-&gt;output_section-&gt;vma
</span><span class="cx"> 					   + sgot-&gt;output_offset + off);
</span><span class="cx"> 			outrel.r_info =
</span>-			  ELF32_R_INFO (0, R_pcrel24);
+			  ELF32_R_INFO (0, R_BFIN_PCREL24);
<span class="cx"> 			outrel.r_addend = relocation;
</span><span class="cx"> 			loc = s-&gt;contents;
</span><span class="cx"> 			loc +=
</span><span class="lines"> <at>  <at>  -1680,7 +1680,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (ELF32_R_TYPE (rel-&gt;r_info))
</span><span class="cx"> 	{
</span>-	case R_got:
+	case R_BFIN_GOT:
<span class="cx"> 	  r_symndx = ELF32_R_SYM (rel-&gt;r_info);
</span><span class="cx"> 	  if (r_symndx &gt;= symtab_hdr-&gt;sh_info)
</span><span class="cx"> 	    {
</span><span class="lines"> <at>  <at>  -1898,7 +1898,7  <at>  <at> 
</span><span class="cx">      needed for this symbol.  */
</span><span class="cx">   unsigned done:1;
</span><span class="cx"> 
</span>-  /* The number of R_byte4_data, R_BFIN_FUNCDESC and R_BFIN_FUNCDESC_VALUE
+  /* The number of R_BFIN_BYTE4_DATA, R_BFIN_FUNCDESC and R_BFIN_FUNCDESC_VALUE
<span class="cx">      relocations referencing the symbol.  */
</span><span class="cx">   unsigned relocs32, relocsfd, relocsfdv;
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -2231,7 +2231,7  <at>  <at> 
</span><span class="cx"> 				 + bfinfdpic_got_section (info)
</span><span class="cx"> 				 -&gt;output_section-&gt;vma
</span><span class="cx"> 				 + bfinfdpic_got_section (info)-&gt;output_offset,
</span>-				 R_byte4_data, idx, ad, entry);
+				 R_BFIN_BYTE4_DATA, idx, ad, entry);
<span class="cx"> 
</span><span class="cx">       bfd_put_32 (output_bfd, ad,
</span><span class="cx"> 		  bfinfdpic_got_section (info)-&gt;contents
</span><span class="lines"> <at>  <at>  -2283,7 +2283,7  <at>  <at> 
</span><span class="cx"> 		 so reference it directly.  */
</span><span class="cx"> 	      if (elf_hash_table (info)-&gt;dynamic_sections_created)
</span><span class="cx"> 		BFD_ASSERT (entry-&gt;privfd);
</span>-	      reloc = R_byte4_data;
+	      reloc = R_BFIN_BYTE4_DATA;
<span class="cx"> 	      idx = elf_section_data (bfinfdpic_got_section (info)
</span><span class="cx"> 				      -&gt;output_section)-&gt;dynindx;
</span><span class="cx"> 	      ad = bfinfdpic_got_section (info)-&gt;output_offset
</span><span class="lines"> <at>  <at>  -2702,9 +2702,9  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (r_type)
</span><span class="cx"> 	{
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
-	case R_byte4_data:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 	  if (! IS_FDPIC (output_bfd))
</span><span class="cx"> 	    goto non_fdpic;
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -2764,8 +2764,8  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (r_type)
</span><span class="cx"> 	{
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
<span class="cx"> 	  check_segment[0] = isec_segment;
</span><span class="cx"> 	  if (! IS_FDPIC (output_bfd))
</span><span class="cx"> 	    check_segment[1] = isec_segment;
</span><span class="lines"> <at>  <at>  -2863,7 +2863,7  <at>  <at> 
</span><span class="cx"> 		    /* Otherwise, we know we have a private function
</span><span class="cx"> 		       descriptor, so reference it directly.  */
</span><span class="cx"> 		    BFD_ASSERT (picrel-&gt;privfd);
</span>-		    r_type = R_byte4_data;
+		    r_type = R_BFIN_BYTE4_DATA;
<span class="cx"> 		    dynindx = elf_section_data (bfinfdpic_got_section (info)
</span><span class="cx"> 						-&gt;output_section)-&gt;dynindx;
</span><span class="cx"> 		    addend = bfinfdpic_got_section (info)-&gt;output_offset
</span><span class="lines"> <at>  <at>  -2930,7 +2930,7  <at>  <at> 
</span><span class="cx"> 		      _bfinfdpic_add_dyn_reloc (output_bfd,
</span><span class="cx"> 						bfinfdpic_gotrel_section (info),
</span><span class="cx"> 						0,
</span>-						R_unused0,
+						R_BFIN_UNUSED0,
<span class="cx"> 						dynindx, addend, picrel);
</span><span class="cx"> 		    else
</span><span class="cx"> 		      _bfinfdpic_add_dyn_reloc (output_bfd,
</span><span class="lines"> <at>  <at>  -2953,7 +2953,7  <at>  <at> 
</span><span class="cx"> 	  check_segment[0] = check_segment[1] = got_segment;
</span><span class="cx"> 	  break;
</span><span class="cx"> 
</span>-	case R_byte4_data:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 	  if (! IS_FDPIC (output_bfd))
</span><span class="cx"> 	    {
</span><span class="cx"> 	      check_segment[0] = check_segment[1] = -1;
</span><span class="lines"> <at>  <at>  -3074,7 +3074,7  <at>  <at> 
</span><span class="cx"> 		    if (offset &gt;= (bfd_vma)-2)
</span><span class="cx"> 		      _bfinfdpic_add_dyn_reloc (output_bfd,
</span><span class="cx"> 						bfinfdpic_gotrel_section (info),
</span>-						0, R_unused0, dynindx, addend, picrel);
+						0, R_BFIN_UNUSED0, dynindx, addend, picrel);
<span class="cx"> 		    else
</span><span class="cx"> 		      _bfinfdpic_add_dyn_reloc (output_bfd,
</span><span class="cx"> 						bfinfdpic_gotrel_section (info),
</span><span class="lines"> <at>  <at>  -3190,8 +3190,8  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (r_type)
</span><span class="cx"> 	{
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
<span class="cx"> 	  if (! IS_FDPIC (output_bfd) || ! picrel-&gt;plt)
</span><span class="cx"> 	    break;
</span><span class="cx"> 	  /* Fall through.  */
</span><span class="lines"> <at>  <at>  -3321,8 +3321,8  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (ELF32_R_TYPE (rel-&gt;r_info))
</span><span class="cx">         {
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
<span class="cx"> 	  picrel-&gt;call--;
</span><span class="cx"> 	  break;
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -3332,7 +3332,7  <at>  <at> 
</span><span class="cx"> 	    picrel-&gt;relocs32++;
</span><span class="cx"> 	  /* Fall through.  */
</span><span class="cx"> 
</span>-	case R_byte4_data:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 	  picrel-&gt;sym--;
</span><span class="cx"> 	  if (bfd_get_section_flags (abfd, sec) &amp; SEC_ALLOC)
</span><span class="cx"> 	    picrel-&gt;relocs32--;
</span><span class="lines"> <at>  <at>  -4703,9 +4703,9  <at>  <at> 
</span><span class="cx"> 	  if (! IS_FDPIC (abfd))
</span><span class="cx"> 	    goto bad_reloc;
</span><span class="cx"> 	  /* Fall through.  */
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
-	case R_byte4_data:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 	  if (IS_FDPIC (abfd) &amp;&amp; ! dynobj)
</span><span class="cx"> 	    {
</span><span class="cx"> 	      elf_hash_table (info)-&gt;dynobj = dynobj = abfd;
</span><span class="lines"> <at>  <at>  -4749,8 +4749,8  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx">       switch (ELF32_R_TYPE (rel-&gt;r_info))
</span><span class="cx">         {
</span>-	case R_pcrel24:
-	case R_pcrel24_jump_l:
+	case R_BFIN_PCREL24:
+	case R_BFIN_PCREL24_JUMP_L:
<span class="cx"> 	  if (IS_FDPIC (abfd))
</span><span class="cx"> 	    picrel-&gt;call++;
</span><span class="cx"> 	  break;
</span><span class="lines"> <at>  <at>  -4761,7 +4761,7  <at>  <at> 
</span><span class="cx"> 	    picrel-&gt;relocs32--;
</span><span class="cx"> 	  /* Fall through.  */
</span><span class="cx"> 
</span>-	case R_byte4_data:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 	  if (! IS_FDPIC (abfd))
</span><span class="cx"> 	    break;
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -4822,10 +4822,10  <at>  <at> 
</span><span class="cx">             return FALSE;
</span><span class="cx">           break;
</span><span class="cx"> 
</span>-	case R_huimm16:
-	case R_luimm16:
-	case R_pcrel12_jump_s:
-	case R_pcrel10:
+	case R_BFIN_HUIMM16:
+	case R_BFIN_LUIMM16:
+	case R_BFIN_PCREL12_JUMP_S:
+	case R_BFIN_PCREL10:
<span class="cx"> 	  break;
</span><span class="cx"> 
</span><span class="cx"> 	default:
</span><span class="lines"> <at>  <at>  -5147,7 +5147,7  <at>  <at> 
</span><span class="cx"> 	      || h-&gt;dynindx == -1 || h-&gt;forced_local) &amp;&amp; h-&gt;def_regular)
</span><span class="cx"> 	{
</span><span class="cx"> fprintf(stderr, "*** check this relocation %s\n", __FUNCTION__);
</span>-	  rela.r_info = ELF32_R_INFO (0, R_pcrel24);
+	  rela.r_info = ELF32_R_INFO (0, R_BFIN_PCREL24);
<span class="cx"> 	  rela.r_addend = bfd_get_signed_32 (output_bfd,
</span><span class="cx"> 					     (sgot-&gt;contents
</span><span class="cx"> 					      +
</span><span class="lines"> <at>  <at>  -5158,7 +5158,7  <at>  <at> 
</span><span class="cx"> 	{
</span><span class="cx"> 	  bfd_put_32 (output_bfd, (bfd_vma) 0,
</span><span class="cx"> 		      sgot-&gt;contents + (h-&gt;got.offset &amp; ~(bfd_vma) 1));
</span>-	  rela.r_info = ELF32_R_INFO (h-&gt;dynindx, R_got);
+	  rela.r_info = ELF32_R_INFO (h-&gt;dynindx, R_BFIN_GOT);
<span class="cx"> 	  rela.r_addend = 0;
</span><span class="cx"> 	}
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -5553,7 +5553,7  <at>  <at> 
</span><span class="cx">        characters.  */
</span><span class="cx"> 
</span><span class="cx">       /* We can only relocate absolute longword relocs at run time.  */
</span>-      if (ELF32_R_TYPE (irel-&gt;r_info) != (int) R_byte4_data)
+      if (ELF32_R_TYPE (irel-&gt;r_info) != (int) R_BFIN_BYTE4_DATA)
<span class="cx"> 	{
</span><span class="cx"> 	  *errmsg = _("unsupported reloc type");
</span><span class="cx"> 	  bfd_set_error (bfd_error_bad_value);
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/gas/testsuite/ChangeLog.bfin	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -1,3 +1,7  <at>  <at> 
</span>+2009-06-01  Mike Frysinger  &lt;michael.frysinger@...&gt;
+
+	* gas/bfin/loop.d, gas/bfin/reloc.d: Rename relocs to R_BFIN_XXX.
+
<span class="cx"> 2009-05-05  Jie Zhang  &lt;jie.zhang@...&gt;
</span><span class="cx"> 
</span><span class="cx"> 	* gas/bfin/search.s: Clean up.
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/gas/testsuite/gas/bfin/loop.d	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -4,4 +4,4  <at>  <at> 
</span><span class="cx"> Relocation section '\.rela\.text' .*:
</span><span class="cx"> .*
</span><span class="cx"> .* R_BFIN_GOT17M4    0+00   _foo \+ 0
</span>-.* R_pcrel24         0+00   _bar \+ 0
+.* R_BFIN_PCREL24    0+00   _bar \+ 0
</span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/gas/testsuite/gas/bfin/reloc.d	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -4,17 +4,17  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> RELOCATION RECORDS FOR \[\.text\]:
</span><span class="cx"> OFFSET   TYPE              VALUE 
</span>-0*0004 R_pcrel24         _call_data1
-0*0008 R_rimm16          .data
-0*000a R_pcrel12_jump_s  .text\+0x00000018
-0*000e R_pcrel24         call_data1\+0x00000008
-0*0012 R_huimm16         .data\+0x00000002
-0*0016 R_luimm16         .data\+0x00000004
-0*001a R_huimm16         load_extern1
+0*0004 R_BFIN_PCREL24    _call_data1
+0*0008 R_BFIN_RIMM16     .data
+0*000a R_BFIN_PCREL12_JUMP_S  .text\+0x00000018
+0*000e R_BFIN_PCREL24    call_data1\+0x00000008
+0*0012 R_BFIN_HUIMM16    .data\+0x00000002
+0*0016 R_BFIN_LUIMM16    .data\+0x00000004
+0*001a R_BFIN_HUIMM16    load_extern1
<span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> RELOCATION RECORDS FOR \[\.data\]:
</span><span class="cx"> OFFSET   TYPE              VALUE 
</span>-0*0006 R_byte_data       load_extern1
+0*0006 R_BFIN_BYTE_DATA  load_extern1
<span class="cx"> 
</span><span class="cx"> 
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/include/elf/ChangeLog.bfin (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/include/elf/ChangeLog.bfin	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/include/elf/ChangeLog.bfin	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -1,3 +1,7  <at>  <at> 
</span>+2009-06-01  Mike Frysinger  &lt;michael.frysinger@...&gt;
+
+	* bfin.h: Rename relocs to R_BFIN_XXX.
+
<span class="cx"> 2006-08-17  Jie Zhang  &lt;jie.zhang@...&gt;
</span><span class="cx"> 
</span><span class="cx"> 	2006-05-27  H.J. Lu  &lt;hongjiu.lu@...&gt;
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/binutils-2.17/include/elf/bfin.h (3418 =&gt; 3419)</h4>
<span>
<span class="info">--- trunk/binutils-2.17/include/elf/bfin.h	2009-06-01 14:47:11 UTC (rev 3418)
+++ trunk/binutils-2.17/include/elf/bfin.h	2009-06-02 05:02:01 UTC (rev 3419)
</span><span class="lines"> <at>  <at>  -19,30 +19,30  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> #ifndef _ELF_BFIN_H
</span><span class="cx"> #define _ELF_BFIN_H
</span>-			     
+
<span class="cx"> #include "elf/reloc-macros.h"
</span><span class="cx"> 
</span><span class="cx"> START_RELOC_NUMBERS (elf_bfin_reloc_type)
</span>-  RELOC_NUMBER (R_unused0, 0x00) /* relocation type 0 is not defined*/
-  RELOC_NUMBER (R_pcrel5m2, 0x01) /*LSETUP part a*/
-  RELOC_NUMBER (R_unused1, 0x02) /* relocation type 2 is not defined*/
-  RELOC_NUMBER (R_pcrel10, 0x03) /* type 3, 0x00) if cc jump &lt;target&gt;  */
-  RELOC_NUMBER (R_pcrel12_jump, 0x04) /* type 4, 0x00) jump &lt;target&gt; */
-  RELOC_NUMBER (R_rimm16, 0x05)    /* type 0x5, 0x00) rN = &lt;target&gt; */
-  RELOC_NUMBER (R_luimm16, 0x06)  /* # 0x6, 0x00) preg.l=&lt;target&gt; Load imm 16 to lower half */
-  RELOC_NUMBER (R_huimm16, 0x07)  /* # 0x7, 0x00) preg.h=&lt;target&gt; Load imm 16 to upper half*/
-  RELOC_NUMBER (R_pcrel12_jump_s, 0x08) /* # 0x8 jump.s &lt;target&gt; */
-  RELOC_NUMBER (R_pcrel24_jump_x, 0x09) /* # 0x9 jump.x &lt;target&gt; */
-  RELOC_NUMBER (R_pcrel24, 0x0a)        /* # 0xa call &lt;target&gt; , 0x00) not expandable*/
-  RELOC_NUMBER (R_unusedb, 0x0b)         /* # 0xb not generated */
-  RELOC_NUMBER (R_unusedc, 0x0c)       /* # 0xc  not used */
-  RELOC_NUMBER (R_pcrel24_jump_l, 0x0d) /*0xd jump.l &lt;target&gt;*/
-  RELOC_NUMBER (R_pcrel24_call_x, 0x0e) /* 0xE, 0x00) call.x &lt;target&gt; if &lt;target&gt; is above 24 bit limit call through P1 */
-  RELOC_NUMBER (R_var_eq_symb, 0x0f)    /* 0xf, 0x00) linker should treat it same as 0x12 */
-  RELOC_NUMBER (R_byte_data, 0x10)      /* 0x10, 0x00) .byte var = symbol */
-  RELOC_NUMBER (R_byte2_data, 0x11)     /* 0x11, 0x00) .byte2 var = symbol */
-  RELOC_NUMBER (R_byte4_data, 0x12)     /* 0x12, 0x00) .byte4 var = symbol and .var var=symbol */
-  RELOC_NUMBER (R_pcrel11, 0x13)        /* 0x13, 0x00) lsetup part b */
+  RELOC_NUMBER (R_BFIN_UNUSED0, 0x00)          /* relocation type 0 is not defined */
+  RELOC_NUMBER (R_BFIN_PCREL5M2, 0x01)         /* LSETUP part a */
+  RELOC_NUMBER (R_BFIN_UNUSED1, 0x02)          /* relocation type 2 is not defined */
+  RELOC_NUMBER (R_BFIN_PCREL10, 0x03)          /* type 3, 0x00) if cc jump &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_PCREL12_JUMP, 0x04)     /* type 4, 0x00) jump &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_RIMM16, 0x05)           /* type 0x5, 0x00) rN = &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_LUIMM16, 0x06)          /* # 0x6, 0x00) preg.l=&lt;target&gt; Load imm 16 to lower half */
+  RELOC_NUMBER (R_BFIN_HUIMM16, 0x07)          /* # 0x7, 0x00) preg.h=&lt;target&gt; Load imm 16 to upper half */
+  RELOC_NUMBER (R_BFIN_PCREL12_JUMP_S, 0x08)   /* # 0x8 jump.s &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_PCREL24_JUMP_X, 0x09)   /* # 0x9 jump.x &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_PCREL24, 0x0a)          /* # 0xa call &lt;target&gt; , 0x00) not expandable */
+  RELOC_NUMBER (R_BFIN_UNUSEDB, 0x0b)          /* # 0xb not generated */
+  RELOC_NUMBER (R_BFIN_UNUSEDC, 0x0c)          /* # 0xc  not used */
+  RELOC_NUMBER (R_BFIN_PCREL24_JUMP_L, 0x0d)   /* 0xd jump.l &lt;target&gt; */
+  RELOC_NUMBER (R_BFIN_PCREL24_CALL_X, 0x0e)   /* 0xE, 0x00) call.x &lt;target&gt; if &lt;target&gt; is above 24 bit limit call through P1 */
+  RELOC_NUMBER (R_BFIN_VAR_EQ_SYMB, 0x0f)      /* 0xf, 0x00) linker should treat it same as 0x12 */
+  RELOC_NUMBER (R_BFIN_BYTE_DATA, 0x10)        /* 0x10, 0x00) .byte var = symbol */
+  RELOC_NUMBER (R_BFIN_BYTE2_DATA, 0x11)       /* 0x11, 0x00) .byte2 var = symbol */
+  RELOC_NUMBER (R_BFIN_BYTE4_DATA, 0x12)       /* 0x12, 0x00) .byte4 var = symbol and .var var=symbol */
+  RELOC_NUMBER (R_BFIN_PCREL11, 0x13)          /* 0x13, 0x00) lsetup part b */
<span class="cx">   RELOC_NUMBER (R_BFIN_GOT17M4, 0x14)
</span><span class="cx">   RELOC_NUMBER (R_BFIN_GOTHI, 0x15)
</span><span class="cx">   RELOC_NUMBER (R_BFIN_GOTLO, 0x16)
</span><span class="lines"> <at>  <at>  -58,31 +58,31  <at>  <at> 
</span><span class="cx">   RELOC_NUMBER (R_BFIN_GOTOFFHI, 0x20)
</span><span class="cx">   RELOC_NUMBER (R_BFIN_GOTOFFLO, 0x21)
</span><span class="cx"> 
</span>-  RELOC_NUMBER (R_push, 0xE0)
-  RELOC_NUMBER (R_const, 0xE1)
-  RELOC_NUMBER (R_add, 0xE2)
-  RELOC_NUMBER (R_sub, 0xE3)
-  RELOC_NUMBER (R_mult, 0xE4)
-  RELOC_NUMBER (R_div, 0xE5)
-  RELOC_NUMBER (R_mod, 0xE6)
-  RELOC_NUMBER (R_lshift, 0xE7)
-  RELOC_NUMBER (R_rshift, 0xE8)
-  RELOC_NUMBER (R_and, 0xE9)
-  RELOC_NUMBER (R_or, 0xEA)
-  RELOC_NUMBER (R_xor, 0xEB)
-  RELOC_NUMBER (R_land, 0xEC)
-  RELOC_NUMBER (R_lor, 0xED)
-  RELOC_NUMBER (R_len, 0xEE)
-  RELOC_NUMBER (R_neg, 0xEF)
-  RELOC_NUMBER (R_comp, 0xF0)
-  RELOC_NUMBER (R_page, 0xF1)
-  RELOC_NUMBER (R_hwpage, 0xF2)
-  RELOC_NUMBER (R_addr, 0xF3)
-  RELOC_NUMBER (R_pltpc, 0x40)          /* PLT gnu only relocation */
-  RELOC_NUMBER (R_got, 0x41)            /* GOT gnu only relocation */
+  RELOC_NUMBER (R_BFIN_PUSH, 0xE0)
+  RELOC_NUMBER (R_BFIN_CONST, 0xE1)
+  RELOC_NUMBER (R_BFIN_ADD, 0xE2)
+  RELOC_NUMBER (R_BFIN_SUB, 0xE3)
+  RELOC_NUMBER (R_BFIN_MULT, 0xE4)
+  RELOC_NUMBER (R_BFIN_DIV, 0xE5)
+  RELOC_NUMBER (R_BFIN_MOD, 0xE6)
+  RELOC_NUMBER (R_BFIN_LSHIFT, 0xE7)
+  RELOC_NUMBER (R_BFIN_RSHIFT, 0xE8)
+  RELOC_NUMBER (R_BFIN_AND, 0xE9)
+  RELOC_NUMBER (R_BFIN_OR, 0xEA)
+  RELOC_NUMBER (R_BFIN_XOR, 0xEB)
+  RELOC_NUMBER (R_BFIN_LAND, 0xEC)
+  RELOC_NUMBER (R_BFIN_LOR, 0xED)
+  RELOC_NUMBER (R_BFIN_LEN, 0xEE)
+  RELOC_NUMBER (R_BFIN_NEG, 0xEF)
+  RELOC_NUMBER (R_BFIN_COMP, 0xF0)
+  RELOC_NUMBER (R_BFIN_PAGE, 0xF1)
+  RELOC_NUMBER (R_BFIN_HWPAGE, 0xF2)
+  RELOC_NUMBER (R_BFIN_ADDR, 0xF3)
+  RELOC_NUMBER (R_BFIN_PLTPC, 0x40)         /* PLT gnu only relocation */
+  RELOC_NUMBER (R_BFIN_GOT, 0x41)           /* GOT gnu only relocation */
<span class="cx">   RELOC_NUMBER (R_BFIN_GNU_VTINHERIT, 0x42) /* C++, gnu only */
</span><span class="cx">   RELOC_NUMBER (R_BFIN_GNU_VTENTRY, 0x43) /* C++, gnu only */
</span>-END_RELOC_NUMBERS (R_max)
+END_RELOC_NUMBERS (R_BFIN_max)
<span class="cx"> 
</span><span class="cx"> /* Processor specific flags for the ELF header e_flags field.  */
</span><span class="cx"> #define EF_BFIN_PIC		0x00000001	/* -fpic */
</span></span>
</div>
</div>

</div>
vapier | 2 Jun 2009 07:02
Favicon

[3420] trunk/elf2flt/elf2flt.c: add R_BFIN_ prefix to all reloc names and make sure they are all capitalized

Revision 3420 Author vapier Date 2009-06-02 00:02:34 -0500 (Tue, 02 Jun 2009)

Log Message

add R_BFIN_ prefix to all reloc names and make sure they are all capitalized

Modified Paths

Diff

Modified: trunk/elf2flt/elf2flt.c (3419 => 3420)

--- trunk/elf2flt/elf2flt.c 2009-06-02 05:02:01 UTC (rev 3419) +++ trunk/elf2flt/elf2flt.c 2009-06-02 05:02:34 UTC (rev 3420) <at> <at> -738,15 +738,15 <at> <at> default: goto bad_resolved_reloc; #elif defined TARGET_bfin - case R_rimm16: - case R_luimm16: - case R_huimm16: + case R_BFIN_RIMM16: + case R_BFIN_LUIMM16: + case R_BFIN_HUIMM16: sym_vma = bfd_section_vma(abs_bfd, sym_section); sym_addr += sym_vma + q->addend; if (weak_und_symbol(sym_section->name, (*(q->sym_ptr_ptr)))) continue; - if (q->howto->type == R_rimm16 && (0xFFFF0000 & sym_addr)) { + if (q->howto->type == R_BFIN_RIMM16 && (0xFFFF0000 & sym_addr)) { fprintf (stderr, "Relocation overflow for rN = %s\n",sym_name); bad_relocs++; } <at> <at> -765,7 +765,7 <at> <at> if (bfin_set_reloc (flat_relocs + flat_reloc_count, sym_section->name, sym_name, (*(q->sym_ptr_ptr)), - q->howto->type == R_huimm16 ? 1 : 0, + q->howto->type == R_BFIN_HUIMM16 ? 1 : 0, section_vma + q->address)) bad_relocs++; if (a->flags & SEC_CODE) <at> <at> -773,7 +773,7 <at> <at> flat_reloc_count++; break; - case R_byte4_data: + case R_BFIN_BYTE4_DATA: sym_vma = bfd_section_vma(abs_bfd, sym_section); sym_addr += sym_vma + q->addend; <at> <at> -1507,13 +1507,13 <at> <at> break; } #elif defined TARGET_bfin - if ((*p)->howto->type == R_rimm16 - || (*p)->howto->type == R_huimm16 - || (*p)->howto->type == R_luimm16) + if ((*p)->howto->type == R_BFIN_RIMM16 + || (*p)->howto->type == R_BFIN_HUIMM16 + || (*p)->howto->type == R_BFIN_LUIMM16) { /* for l and h we set the lower 16 bits which is only when it will be used */ bfd_putl16 (sym_addr, sectionp + q->address); - } else if ((*p)->howto->type == R_byte4_data) { + } else if ((*p)->howto->type == R_BFIN_BYTE4_DATA) { bfd_putl32 (sym_addr, sectionp + q->address); } #else /* ! TARGET_arm && ! TARGET_e1 && ! TARGET_bfin */
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3420">3420</a>
Author <a href="http://blackfin.uclinux.org/gf/user/vapier/">vapier</a>
Date 2009-06-02 00:02:34 -0500 (Tue, 02 Jun 2009)
<h3>Log Message</h3>
add R_BFIN_ prefix to all reloc names and make sure they are all capitalized

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkelf2fltelf2fltc">trunk/elf2flt/elf2flt.c</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/elf2flt/elf2flt.c (3419 =&gt; 3420)</h4>
<span>
<span class="info">--- trunk/elf2flt/elf2flt.c	2009-06-02 05:02:01 UTC (rev 3419)
+++ trunk/elf2flt/elf2flt.c	2009-06-02 05:02:34 UTC (rev 3420)
</span><span class="lines"> <at>  <at>  -738,15 +738,15  <at>  <at> 
</span><span class="cx"> 				default:
</span><span class="cx"> 					goto bad_resolved_reloc;
</span><span class="cx"> #elif defined TARGET_bfin
</span>-				case R_rimm16:
-				case R_luimm16:
-				case R_huimm16:
+				case R_BFIN_RIMM16:
+				case R_BFIN_LUIMM16:
+				case R_BFIN_HUIMM16:
<span class="cx"> 				    sym_vma = bfd_section_vma(abs_bfd, sym_section);
</span><span class="cx"> 				    sym_addr += sym_vma + q-&gt;addend;
</span><span class="cx"> 
</span><span class="cx"> 				    if (weak_und_symbol(sym_section-&gt;name, (*(q-&gt;sym_ptr_ptr))))
</span><span class="cx"> 					continue;
</span>-				    if (q-&gt;howto-&gt;type == R_rimm16 &amp;&amp; (0xFFFF0000 &amp; sym_addr)) {
+				    if (q-&gt;howto-&gt;type == R_BFIN_RIMM16 &amp;&amp; (0xFFFF0000 &amp; sym_addr)) {
<span class="cx"> 					fprintf (stderr, "Relocation overflow for rN = %s\n",sym_name);
</span><span class="cx"> 					bad_relocs++;
</span><span class="cx"> 				    }
</span><span class="lines"> <at>  <at>  -765,7 +765,7  <at>  <at> 
</span><span class="cx"> 				    if (bfin_set_reloc (flat_relocs + flat_reloc_count,
</span><span class="cx"> 							sym_section-&gt;name, sym_name,
</span><span class="cx"> 							(*(q-&gt;sym_ptr_ptr)),
</span>-							q-&gt;howto-&gt;type == R_huimm16 ? 1 : 0,
+							q-&gt;howto-&gt;type == R_BFIN_HUIMM16 ? 1 : 0,
<span class="cx"> 							section_vma + q-&gt;address))
</span><span class="cx"> 					bad_relocs++;
</span><span class="cx"> 				    if (a-&gt;flags &amp; SEC_CODE)
</span><span class="lines"> <at>  <at>  -773,7 +773,7  <at>  <at> 
</span><span class="cx"> 				    flat_reloc_count++;
</span><span class="cx"> 				    break;
</span><span class="cx"> 
</span>-				case R_byte4_data:
+				case R_BFIN_BYTE4_DATA:
<span class="cx"> 				    sym_vma = bfd_section_vma(abs_bfd, sym_section);
</span><span class="cx"> 				    sym_addr += sym_vma + q-&gt;addend;
</span><span class="cx"> 
</span><span class="lines"> <at>  <at>  -1507,13 +1507,13  <at>  <at> 
</span><span class="cx"> 				break;
</span><span class="cx"> 				}
</span><span class="cx"> #elif defined TARGET_bfin
</span>-				if ((*p)-&gt;howto-&gt;type == R_rimm16
-				    || (*p)-&gt;howto-&gt;type == R_huimm16
-				    || (*p)-&gt;howto-&gt;type == R_luimm16)
+				if ((*p)-&gt;howto-&gt;type == R_BFIN_RIMM16
+				    || (*p)-&gt;howto-&gt;type == R_BFIN_HUIMM16
+				    || (*p)-&gt;howto-&gt;type == R_BFIN_LUIMM16)
<span class="cx"> 				{
</span><span class="cx"> 					/* for l and h we set the lower 16 bits which is only when it will be used */
</span><span class="cx"> 					bfd_putl16 (sym_addr, sectionp + q-&gt;address);
</span>-				} else if ((*p)-&gt;howto-&gt;type == R_byte4_data) {
+				} else if ((*p)-&gt;howto-&gt;type == R_BFIN_BYTE4_DATA) {
<span class="cx"> 					bfd_putl32 (sym_addr, sectionp + q-&gt;address);
</span><span class="cx"> 				}
</span><span class="cx"> #else /* ! TARGET_arm &amp;&amp; ! TARGET_e1 &amp;&amp; ! TARGET_bfin */
</span></span>
</div>
</div>

</div>
vapier | 2 Jun 2009 07:04
Favicon

[3421] trunk/uClibc: make sure all Blackfin relocs are all capitalized

Revision 3421 Author vapier Date 2009-06-02 00:04:14 -0500 (Tue, 02 Jun 2009)

Log Message

make sure all Blackfin relocs are all capitalized

Modified Paths

Diff

Modified: trunk/uClibc/include/elf.h (3420 => 3421)

--- trunk/uClibc/include/elf.h 2009-06-02 05:02:34 UTC (rev 3420) +++ trunk/uClibc/include/elf.h 2009-06-02 05:04:14 UTC (rev 3421) <at> <at> -1259,26 +1259,26 <at> <at> #define R_386_NUM 38 /* Blackfin specific definitions. */ -#define R_BFIN_unused0 0x00 -#define R_BFIN_pcrel5m2 0x01 -#define R_BFIN_unused1 0x02 -#define R_BFIN_pcrel10 0x03 -#define R_BFIN_pcrel12_jump 0x04 -#define R_BFIN_rimm16 0x05 -#define R_BFIN_luimm16 0x06 -#define R_BFIN_huimm16 0x07 -#define R_BFIN_pcrel12_jump_s 0x08 -#define R_BFIN_pcrel24_jump_x 0x09 -#define R_BFIN_pcrel24 0x0a -#define R_BFIN_unusedb 0x0b -#define R_BFIN_unusedc 0x0c -#define R_BFIN_pcrel24_jump_l 0x0d -#define R_BFIN_pcrel24_call_x 0x0e +#define R_BFIN_UNUSED0 0x00 +#define R_BFIN_PCREL5M2 0x01 +#define R_BFIN_UNUSED1 0x02 +#define R_BFIN_PCREL10 0x03 +#define R_BFIN_PCREL12_JUMP 0x04 +#define R_BFIN_RIMM16 0x05 +#define R_BFIN_LUIMM16 0x06 +#define R_BFIN_HUIMM16 0x07 +#define R_BFIN_PCREL12_JUMP_S 0x08 +#define R_BFIN_PCREL24_JUMP_X 0x09 +#define R_BFIN_PCREL24 0x0a +#define R_BFIN_UNUSEDB 0x0b +#define R_BFIN_UNUSEDC 0x0c +#define R_BFIN_PCREL24_JUMP_L 0x0d +#define R_BFIN_PCREL24_CALL_X 0x0e #define R_BFIN_var_eq_symb 0x0f -#define R_BFIN_byte_data 0x10 -#define R_BFIN_byte2_data 0x11 -#define R_BFIN_byte4_data 0x12 -#define R_BFIN_pcrel11 0x13 +#define R_BFIN_BYTE_DATA 0x10 +#define R_BFIN_BYTE2_DATA 0x11 +#define R_BFIN_BYTE4_DATA 0x12 +#define R_BFIN_PCREL11 0x13 #define R_BFIN_GOT17M4 0x14 #define R_BFIN_GOTHI 0x15

Modified: trunk/uClibc/ldso/ldso/bfin/dl-debug.h (3420 => 3421)

--- trunk/uClibc/ldso/ldso/bfin/dl-debug.h 2009-06-02 05:02:34 UTC (rev 3420) +++ trunk/uClibc/ldso/ldso/bfin/dl-debug.h 2009-06-02 05:04:14 UTC (rev 3421) <at> <at> -31,16 +31,16 <at> <at> static const char *_dl_reltypes_tab[] = { - [0] "R_BFIN_unused0", "R_BFIN_pcrel5m2", - [2] "R_BFIN_unused1", "R_BFIN_pcrel10", - [4] "R_BFIN_pcrel12_jump", "R_BFIN_rimm16", - [6] "R_BFIN_luimm16", "R_BFIN_huimm16", - [8] "R_BFIN_pcrel12_jump_s","R_BFIN_pcrel24_jump_x", - [10] "R_BFIN_pcrel24", "R_BFIN_unusedb", - [12] "R_BFIN_unusedc", "R_BFIN_pcrel24_jump_l", - [14] "R_BFIN_pcrel24_call_x","R_BFIN_var_eq_symb", - [16] "R_BFIN_byte_data", "R_BFIN_byte2_data", "R_BFIN_byte4_data", - [19] "R_BFIN_pcrel11", + [0] "R_BFIN_UNUSED0", "R_BFIN_PCREL5M2", + [2] "R_BFIN_UNUSED1", "R_BFIN_PCREL10", + [4] "R_BFIN_PCREL12_JUMP", "R_BFIN_RIMM16", + [6] "R_BFIN_LUIMM16", "R_BFIN_HUIMM16", + [8] "R_BFIN_PCREL12_JUMP_S","R_BFIN_PCREL24_JUMP_X", + [10] "R_BFIN_PCREL24", "R_BFIN_UNUSEDB", + [12] "R_BFIN_UNUSEDC", "R_BFIN_PCREL24_JUMP_L", + [14] "R_BFIN_PCREL24_CALL_X","R_BFIN_var_eq_symb", + [16] "R_BFIN_BYTE_DATA", "R_BFIN_BYTE2_DATA", "R_BFIN_BYTE4_DATA", + [19] "R_BFIN_PCREL11", [20] "R_BFIN_GOT17M4", "R_BFIN_GOTHI", "R_BFIN_GOTLO", [23] "R_BFIN_FUNCDESC",

Modified: trunk/uClibc/ldso/ldso/bfin/dl-startup.h (3420 => 3421)

--- trunk/uClibc/ldso/ldso/bfin/dl-startup.h 2009-06-02 05:02:34 UTC (rev 3420) +++ trunk/uClibc/ldso/ldso/bfin/dl-startup.h 2009-06-02 05:04:14 UTC (rev 3421) <at> <at> -114,7 +114,7 <at> <at> */ #define PERFORM_BOOTSTRAP_RELOC(RELP,REL,SYMBOL,LOAD,SYMTAB) \ switch(ELF32_R_TYPE((RELP)->r_info)){ \ - case R_BFIN_byte4_data: \ + case R_BFIN_BYTE4_DATA: \ *(REL) += (SYMBOL); \ break; \ case R_BFIN_FUNCDESC_VALUE: \

Modified: trunk/uClibc/ldso/ldso/bfin/elfinterp.c (3420 => 3421)

--- trunk/uClibc/ldso/ldso/bfin/elfinterp.c 2009-06-02 05:02:34 UTC (rev 3420) +++ trunk/uClibc/ldso/ldso/bfin/elfinterp.c 2009-06-02 05:04:14 UTC (rev 3421) <at> <at> -213,9 +213,9 <at> <at> old_val = 0; #endif switch (reloc_type) { - case R_BFIN_unused0: + case R_BFIN_UNUSED0: break; - case R_BFIN_byte4_data: + case R_BFIN_BYTE4_DATA: if ((long)reloc_addr_packed & 3) reloc_value = reloc_addr_packed->v += symbol_addr; else <at> <at> -300,7 +300,7 <at> <at> old_val = (unsigned long)reloc_addr->entry_point; #endif switch (reloc_type) { - case R_BFIN_unused0: + case R_BFIN_UNUSED0: break; case R_BFIN_FUNCDESC_VALUE: funcval = *reloc_addr;
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3421">3421</a>
Author <a href="http://blackfin.uclinux.org/gf/user/vapier/">vapier</a>
Date 2009-06-02 00:04:14 -0500 (Tue, 02 Jun 2009)
<h3>Log Message</h3>
make sure all Blackfin relocs are all capitalized

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkuClibcincludeelfh">trunk/uClibc/include/elf.h</a></li>
<li><a href="#trunkuClibcldsoldsobfindldebugh">trunk/uClibc/ldso/ldso/bfin/dl-debug.h</a></li>
<li><a href="#trunkuClibcldsoldsobfindlstartuph">trunk/uClibc/ldso/ldso/bfin/dl-startup.h</a></li>
<li><a href="#trunkuClibcldsoldsobfinelfinterpc">trunk/uClibc/ldso/ldso/bfin/elfinterp.c</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/include/elf.h (3420 =&gt; 3421)</h4>
<span>
<span class="info">--- trunk/uClibc/include/elf.h	2009-06-02 05:02:34 UTC (rev 3420)
+++ trunk/uClibc/include/elf.h	2009-06-02 05:04:14 UTC (rev 3421)
</span><span class="lines"> <at>  <at>  -1259,26 +1259,26  <at>  <at> 
</span><span class="cx"> #define R_386_NUM	   38
</span><span class="cx"> 
</span><span class="cx"> /* Blackfin specific definitions.  */
</span>-#define R_BFIN_unused0			0x00
-#define R_BFIN_pcrel5m2			0x01
-#define R_BFIN_unused1			0x02
-#define R_BFIN_pcrel10			0x03
-#define R_BFIN_pcrel12_jump		0x04
-#define R_BFIN_rimm16			0x05
-#define R_BFIN_luimm16			0x06
-#define R_BFIN_huimm16			0x07
-#define R_BFIN_pcrel12_jump_s		0x08
-#define R_BFIN_pcrel24_jump_x		0x09
-#define R_BFIN_pcrel24			0x0a
-#define R_BFIN_unusedb			0x0b
-#define R_BFIN_unusedc			0x0c
-#define R_BFIN_pcrel24_jump_l		0x0d
-#define R_BFIN_pcrel24_call_x		0x0e
+#define R_BFIN_UNUSED0			0x00
+#define R_BFIN_PCREL5M2			0x01
+#define R_BFIN_UNUSED1			0x02
+#define R_BFIN_PCREL10			0x03
+#define R_BFIN_PCREL12_JUMP		0x04
+#define R_BFIN_RIMM16			0x05
+#define R_BFIN_LUIMM16			0x06
+#define R_BFIN_HUIMM16			0x07
+#define R_BFIN_PCREL12_JUMP_S		0x08
+#define R_BFIN_PCREL24_JUMP_X		0x09
+#define R_BFIN_PCREL24			0x0a
+#define R_BFIN_UNUSEDB			0x0b
+#define R_BFIN_UNUSEDC			0x0c
+#define R_BFIN_PCREL24_JUMP_L		0x0d
+#define R_BFIN_PCREL24_CALL_X		0x0e
<span class="cx"> #define R_BFIN_var_eq_symb		0x0f
</span>-#define R_BFIN_byte_data		0x10
-#define R_BFIN_byte2_data		0x11
-#define R_BFIN_byte4_data		0x12
-#define R_BFIN_pcrel11			0x13
+#define R_BFIN_BYTE_DATA		0x10
+#define R_BFIN_BYTE2_DATA		0x11
+#define R_BFIN_BYTE4_DATA		0x12
+#define R_BFIN_PCREL11			0x13
<span class="cx"> 
</span><span class="cx"> #define R_BFIN_GOT17M4			0x14
</span><span class="cx"> #define R_BFIN_GOTHI			0x15
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/ldso/ldso/bfin/dl-debug.h (3420 =&gt; 3421)</h4>
<span>
<span class="info">--- trunk/uClibc/ldso/ldso/bfin/dl-debug.h	2009-06-02 05:02:34 UTC (rev 3420)
+++ trunk/uClibc/ldso/ldso/bfin/dl-debug.h	2009-06-02 05:04:14 UTC (rev 3421)
</span><span class="lines"> <at>  <at>  -31,16 +31,16  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> static const char *_dl_reltypes_tab[] =
</span><span class="cx"> {
</span>-  [0]	"R_BFIN_unused0",	"R_BFIN_pcrel5m2",
-  [2]	"R_BFIN_unused1",	"R_BFIN_pcrel10",
-  [4]	"R_BFIN_pcrel12_jump",	"R_BFIN_rimm16",
-  [6]	"R_BFIN_luimm16",	"R_BFIN_huimm16",
-  [8]	"R_BFIN_pcrel12_jump_s","R_BFIN_pcrel24_jump_x",
-  [10]	"R_BFIN_pcrel24",	"R_BFIN_unusedb",
-  [12]	"R_BFIN_unusedc",	"R_BFIN_pcrel24_jump_l",
-  [14]	"R_BFIN_pcrel24_call_x","R_BFIN_var_eq_symb",
-  [16]	"R_BFIN_byte_data",	"R_BFIN_byte2_data",	"R_BFIN_byte4_data",
-  [19]	"R_BFIN_pcrel11",
+  [0]	"R_BFIN_UNUSED0",	"R_BFIN_PCREL5M2",
+  [2]	"R_BFIN_UNUSED1",	"R_BFIN_PCREL10",
+  [4]	"R_BFIN_PCREL12_JUMP",	"R_BFIN_RIMM16",
+  [6]	"R_BFIN_LUIMM16",	"R_BFIN_HUIMM16",
+  [8]	"R_BFIN_PCREL12_JUMP_S","R_BFIN_PCREL24_JUMP_X",
+  [10]	"R_BFIN_PCREL24",	"R_BFIN_UNUSEDB",
+  [12]	"R_BFIN_UNUSEDC",	"R_BFIN_PCREL24_JUMP_L",
+  [14]	"R_BFIN_PCREL24_CALL_X","R_BFIN_var_eq_symb",
+  [16]	"R_BFIN_BYTE_DATA",	"R_BFIN_BYTE2_DATA",	"R_BFIN_BYTE4_DATA",
+  [19]	"R_BFIN_PCREL11",
<span class="cx"> 
</span><span class="cx">   [20]	"R_BFIN_GOT17M4",	"R_BFIN_GOTHI",		"R_BFIN_GOTLO",
</span><span class="cx">   [23]	"R_BFIN_FUNCDESC",
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/ldso/ldso/bfin/dl-startup.h (3420 =&gt; 3421)</h4>
<span>
<span class="info">--- trunk/uClibc/ldso/ldso/bfin/dl-startup.h	2009-06-02 05:02:34 UTC (rev 3420)
+++ trunk/uClibc/ldso/ldso/bfin/dl-startup.h	2009-06-02 05:04:14 UTC (rev 3421)
</span><span class="lines"> <at>  <at>  -114,7 +114,7  <at>  <at> 
</span><span class="cx">  */
</span><span class="cx"> #define PERFORM_BOOTSTRAP_RELOC(RELP,REL,SYMBOL,LOAD,SYMTAB) \
</span><span class="cx"> 	switch(ELF32_R_TYPE((RELP)-&gt;r_info)){				\
</span>-	case R_BFIN_byte4_data:							\
+	case R_BFIN_BYTE4_DATA:							\
<span class="cx"> 	  *(REL) += (SYMBOL);						\
</span><span class="cx"> 	  break;							\
</span><span class="cx"> 	case R_BFIN_FUNCDESC_VALUE:					\
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/uClibc/ldso/ldso/bfin/elfinterp.c (3420 =&gt; 3421)</h4>
<span>
<span class="info">--- trunk/uClibc/ldso/ldso/bfin/elfinterp.c	2009-06-02 05:02:34 UTC (rev 3420)
+++ trunk/uClibc/ldso/ldso/bfin/elfinterp.c	2009-06-02 05:04:14 UTC (rev 3421)
</span><span class="lines"> <at>  <at>  -213,9 +213,9  <at>  <at> 
</span><span class="cx"> 	  old_val = 0;
</span><span class="cx"> #endif
</span><span class="cx"> 	switch (reloc_type) {
</span>-	case R_BFIN_unused0:
+	case R_BFIN_UNUSED0:
<span class="cx"> 		break;
</span>-	case R_BFIN_byte4_data:
+	case R_BFIN_BYTE4_DATA:
<span class="cx"> 		if ((long)reloc_addr_packed &amp; 3)
</span><span class="cx"> 			reloc_value = reloc_addr_packed-&gt;v += symbol_addr;
</span><span class="cx"> 		else
</span><span class="lines"> <at>  <at>  -300,7 +300,7  <at>  <at> 
</span><span class="cx"> 	old_val = (unsigned long)reloc_addr-&gt;entry_point;
</span><span class="cx"> #endif
</span><span class="cx"> 		switch (reloc_type) {
</span>-			case R_BFIN_unused0:
+			case R_BFIN_UNUSED0:
<span class="cx"> 				break;
</span><span class="cx"> 			case R_BFIN_FUNCDESC_VALUE:
</span><span class="cx"> 				funcval = *reloc_addr;
</span></span>
</div>
</div>

</div>
rgetz | 3 Jun 2009 20:54
Favicon

[3422] trunk/proc-defs/sh/create-debug-mmrs.sh: Export SEQSTAT in the debug MMR tree

Revision 3422 Author rgetz Date 2009-06-03 13:54:06 -0500 (Wed, 03 Jun 2009)

Log Message

Export SEQSTAT in the debug MMR tree

Modified Paths

Diff

Modified: trunk/proc-defs/sh/create-debug-mmrs.sh (3421 => 3422)

--- trunk/proc-defs/sh/create-debug-mmrs.sh 2009-06-02 05:04:14 UTC (rev 3421) +++ trunk/proc-defs/sh/create-debug-mmrs.sh 2009-06-03 18:54:06 UTC (rev 3422) <at> <at> -24,6 +24,8 <at> <at> #define D_RO(name, bits, addr) _D(name, bits, addr, S_IRUSR) #define D_WO(name, bits, addr) _D(name, bits, addr, S_IWUSR) +extern int last_seqstat; + static inline int sport_width(void *mmr) { unsigned long lmmr = (unsigned long)mmr; <at> <at> -77,6 +79,10 <at> <at> top = debugfs_create_dir("blackfin", NULL); if (top == NULL) return -1; + + parent = debugfs_create_dir("Core Registers", top); + debugfs_create_x32("SEQSTAT", S_IRUSR, parent, &last_seqstat); + EOF for f in ../xml/ADSP-BF*-proc.xml ; do
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3422">3422</a>
Author <a href="http://blackfin.uclinux.org/gf/user/rgetz/">rgetz</a>
Date 2009-06-03 13:54:06 -0500 (Wed, 03 Jun 2009)
<h3>Log Message</h3>
Export SEQSTAT in the debug MMR tree

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkprocdefsshcreatedebugmmrssh">trunk/proc-defs/sh/create-debug-mmrs.sh</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/proc-defs/sh/create-debug-mmrs.sh (3421 =&gt; 3422)</h4>
<span>
<span class="info">--- trunk/proc-defs/sh/create-debug-mmrs.sh	2009-06-02 05:04:14 UTC (rev 3421)
+++ trunk/proc-defs/sh/create-debug-mmrs.sh	2009-06-03 18:54:06 UTC (rev 3422)
</span><span class="lines"> <at>  <at>  -24,6 +24,8  <at>  <at> 
</span><span class="cx"> #define D_RO(name, bits, addr)      _D(name, bits, addr, S_IRUSR)
</span><span class="cx"> #define D_WO(name, bits, addr)      _D(name, bits, addr, S_IWUSR)
</span><span class="cx"> 
</span>+extern int last_seqstat;
+
<span class="cx"> static inline int sport_width(void *mmr)
</span><span class="cx"> {
</span><span class="cx"> 	unsigned long lmmr = (unsigned long)mmr;
</span><span class="lines"> <at>  <at>  -77,6 +79,10  <at>  <at> 
</span><span class="cx"> 	top = debugfs_create_dir("blackfin", NULL);
</span><span class="cx"> 	if (top == NULL)
</span><span class="cx"> 		return -1;
</span>+
+	parent = debugfs_create_dir("Core Registers", top);
+	debugfs_create_x32("SEQSTAT", S_IRUSR, parent, &amp;last_seqstat);
+
<span class="cx"> EOF
</span><span class="cx"> 
</span><span class="cx"> for f in ../xml/ADSP-BF*-proc.xml ; do
</span></span>
</div>
</div>

</div>
rgetz | 4 Jun 2009 02:48
Favicon

[3423] trunk/proc-defs/sh/create-debug-mmrs.sh: Mike pointed out this should be u32.

Revision 3423 Author rgetz Date 2009-06-03 19:48:25 -0500 (Wed, 03 Jun 2009)

Log Message

Mike pointed out this should be u32.

Modified Paths

Diff

Modified: trunk/proc-defs/sh/create-debug-mmrs.sh (3422 => 3423)

--- trunk/proc-defs/sh/create-debug-mmrs.sh 2009-06-03 18:54:06 UTC (rev 3422) +++ trunk/proc-defs/sh/create-debug-mmrs.sh 2009-06-04 00:48:25 UTC (rev 3423) <at> <at> -24,7 +24,7 <at> <at> #define D_RO(name, bits, addr) _D(name, bits, addr, S_IRUSR) #define D_WO(name, bits, addr) _D(name, bits, addr, S_IWUSR) -extern int last_seqstat; +extern u32 last_seqstat; static inline int sport_width(void *mmr) {
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3423">3423</a>
Author <a href="http://blackfin.uclinux.org/gf/user/rgetz/">rgetz</a>
Date 2009-06-03 19:48:25 -0500 (Wed, 03 Jun 2009)
<h3>Log Message</h3>
Mike pointed out this should be u32.

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkprocdefsshcreatedebugmmrssh">trunk/proc-defs/sh/create-debug-mmrs.sh</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/proc-defs/sh/create-debug-mmrs.sh (3422 =&gt; 3423)</h4>
<span>
<span class="info">--- trunk/proc-defs/sh/create-debug-mmrs.sh	2009-06-03 18:54:06 UTC (rev 3422)
+++ trunk/proc-defs/sh/create-debug-mmrs.sh	2009-06-04 00:48:25 UTC (rev 3423)
</span><span class="lines"> <at>  <at>  -24,7 +24,7  <at>  <at> 
</span><span class="cx"> #define D_RO(name, bits, addr)      _D(name, bits, addr, S_IRUSR)
</span><span class="cx"> #define D_WO(name, bits, addr)      _D(name, bits, addr, S_IWUSR)
</span><span class="cx"> 
</span>-extern int last_seqstat;
+extern u32 last_seqstat;
<span class="cx"> 
</span><span class="cx"> static inline int sport_width(void *mmr)
</span><span class="cx"> {
</span></span>
</div>
</div>

</div>
jiez | 4 Jun 2009 03:50
Favicon

[3424] trunk/gcc-4.1/gcc: Bug [#5112] Backport the patch for the upstream bug 28744.

Diff

Modified: trunk/gcc-4.1/gcc/ChangeLog.bfin (3423 => 3424)

--- trunk/gcc-4.1/gcc/ChangeLog.bfin 2009-06-04 00:48:25 UTC (rev 3423) +++ trunk/gcc-4.1/gcc/ChangeLog.bfin 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -1,3 +1,20 <at> <at> +2009-06-04 Jie Zhang <jie.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> + + Apply + 2006-08-17 Jakub Jelinek <jakub-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> + PR c/28744 + * cgraph.h (struct cgraph_node): Remove externally_visible + bitfield. + * cgraphunit.c (process_function_and_variable_attributes): Set + local.externally_visible rather than externally_visible. + + PR c/28744 + * c-common.c (handle_externally_visible_attribute): First look + at TREE_CODE and only if it is function or var decl, check for + non-public objects. Don't warn for DECL_EXTERNAL. + * cgraphunit.c (process_function_and_variable_attributes): Warn + if externally_visible attribute is used on non-public object. + 2009-05-27 Bernd Schmidt <bernd.schmidt-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic

Modified: trunk/gcc-4.1/gcc/c-common.c (3423 => 3424)

--- trunk/gcc-4.1/gcc/c-common.c 2009-06-04 00:48:25 UTC (rev 3423) +++ trunk/gcc-4.1/gcc/c-common.c 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -4306,16 +4306,16 <at> <at> { tree node = *pnode; - if ((!TREE_STATIC (node) && TREE_CODE (node) != FUNCTION_DECL) - || !TREE_PUBLIC (node)) + if (TREE_CODE (node) == FUNCTION_DECL || TREE_CODE (node) == VAR_DECL) { - warning (OPT_Wattributes, - "%qE attribute have effect only on public objects", name); - *no_add_attrs = true; + if ((!TREE_STATIC (node) && TREE_CODE (node) != FUNCTION_DECL + && !DECL_EXTERNAL (node)) || !TREE_PUBLIC (node)) + { + warning (OPT_Wattributes, + "%qE attribute have effect only on public objects", name); + *no_add_attrs = true; + } } - else if (TREE_CODE (node) == FUNCTION_DECL - || TREE_CODE (node) == VAR_DECL) - ; else { warning (OPT_Wattributes, "%qE attribute ignored", name);

Modified: trunk/gcc-4.1/gcc/cgraph.h (3423 => 3424)

--- trunk/gcc-4.1/gcc/cgraph.h 2009-06-04 00:48:25 UTC (rev 3423) +++ trunk/gcc-4.1/gcc/cgraph.h 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -157,8 +157,6 <at> <at> bool analyzed; /* Set when function is scheduled to be assembled. */ bool output; - /* Set when function is visible by other units. */ - bool externally_visible; /* Set for aliases once they got through assemble_alias. */ bool alias; };

Modified: trunk/gcc-4.1/gcc/cgraphunit.c (3423 => 3424)

--- trunk/gcc-4.1/gcc/cgraphunit.c 2009-06-04 00:48:25 UTC (rev 3423) +++ trunk/gcc-4.1/gcc/cgraphunit.c 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -934,9 +934,16 <at> <at> } if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl))) { - if (node->local.finalized) - cgraph_mark_needed_node (node); - node->externally_visible = true; + if (! TREE_PUBLIC (node->decl)) + warning (OPT_Wattributes, + "%J%<externally_visible%> attribute have effect only on public objects", + node->decl); + else + { + if (node->local.finalized) + cgraph_mark_needed_node (node); + node->local.externally_visible = true; + } } } for (vnode = cgraph_varpool_nodes; vnode != first_var; vnode = vnode->next) <at> <at> -950,9 +957,16 <at> <at> } if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl))) { - if (vnode->finalized) - cgraph_varpool_mark_needed_node (vnode); - vnode->externally_visible = true; + if (! TREE_PUBLIC (vnode->decl)) + warning (OPT_Wattributes, + "%J%<externally_visible%> attribute have effect only on public objects", + vnode->decl); + else + { + if (vnode->finalized) + cgraph_varpool_mark_needed_node (vnode); + vnode->externally_visible = true; + } } } }

Modified: trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin (3423 => 3424)

--- trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin 2009-06-04 00:48:25 UTC (rev 3423) +++ trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -1,3 +1,13 <at> <at> +2009-06-04 Jie Zhang <jie.zhang-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> + + Apply + 2006-08-17 Jakub Jelinek <jakub-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> + PR c/28744 + * gcc.dg/attr-externally-visible-1.c: New test. + * gcc.dg/attr-externally-visible-2.c: New test. + * g++.dg/parse/attr-externally-visible-1.C: New test. + * g++.dg/parse/attr-externally-visible-2.C: New test. + 2009-05-17 Bernd Schmidt <bernd.schmidt-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org> * gcc.c-torture/compile/20090527-1.c: New file.

Added: trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C (0 => 3424)

--- trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C (rev 0) +++ trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -0,0 +1,48 <at> <at> +// { dg-do compile } +// { dg-options "-O3 -fwhole-program" } +// { dg-final { scan-assembler "foo1" } } +// { dg-final { scan-assembler "foo2" } } +// { dg-final { scan-assembler "foo3" } } +// { dg-final { scan-assembler "foo4" } } +// { dg-final { scan-assembler "foo5" } } +// { dg-final { scan-assembler-not "foo6" } } +// { dg-final { scan-assembler "bar1" } } +// { dg-final { scan-assembler "bar2" } } +// { dg-final { scan-assembler "bar3" } } +// { dg-final { scan-assembler "bar4" } } +// { dg-final { scan-assembler "bar5" } } +// { dg-final { scan-assembler-not "bar6" } } + +extern void foo1 (void) __attribute__((externally_visible)); +void foo1 (void) { } + +extern void foo2 (void) __attribute__((externally_visible)); +__attribute__((externally_visible)) void foo2 (void) { } + +extern void foo3 (void); +__attribute__((externally_visible)) void foo3 (void) { } + +__attribute__((externally_visible)) void foo4 (void) { } + +void foo5 (void) { } +extern void foo5 (void) __attribute__((externally_visible)); + +void foo6 (void) { } + +extern char *bar1 __attribute__((externally_visible)); +char *bar1; + +extern char *bar2 __attribute__((externally_visible)); +char *bar2 __attribute__((externally_visible)); + +extern char *bar3; +char *bar3 __attribute__((externally_visible)); + +char *bar4 __attribute__((externally_visible)); + +char *bar5; +extern char *bar5 __attribute__((externally_visible)); + +char *bar6; + +int main (void) { }

Added: trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C (0 => 3424)

--- trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C (rev 0) +++ trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -0,0 +1,38 <at> <at> +// { dg-do compile } +// { dg-options "-O -fwhole-program" } + +static void foo1 (void) { } // { dg-warning "have effect only on public" } +extern void foo1 (void) __attribute__((externally_visible)); + +struct C +{ + __attribute__((externally_visible)) void foo3 (void) { } +}; + +__attribute__((externally_visible)) static void foo3 (void) { } // { dg-warning "have effect only on public" } + +static int bar1; +extern int bar1 __attribute__((externally_visible)); // { dg-warning "have effect only on public" } + +static int bar2 __attribute__((externally_visible)); // { dg-warning "have effect only on public" } + +void fn1 (void) +{ + static int bar3 __attribute__((externally_visible)); // { dg-warning "have effect only on public" } +} + +void fn2 (void) +{ + int bar4 __attribute__((externally_visible)); // { dg-warning "have effect only on public" } +} + +struct A +{ +} __attribute__((externally_visible)); // { dg-warning "does not apply to types" } + +typedef int B __attribute__((externally_visible)); // { dg-warning "attribute ignored" } + +struct D +{ + static int d __attribute__((externally_visible)); +};

Added: trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c (0 => 3424)

--- trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c (rev 0) +++ trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -0,0 +1,48 <at> <at> +/* { dg-do compile } */ +/* { dg-options "-O3 -fwhole-program" } */ +/* { dg-final { scan-assembler "foo1" } } */ +/* { dg-final { scan-assembler "foo2" } } */ +/* { dg-final { scan-assembler "foo3" } } */ +/* { dg-final { scan-assembler "foo4" } } */ +/* { dg-final { scan-assembler "foo5" } } */ +/* { dg-final { scan-assembler-not "foo6" } } */ +/* { dg-final { scan-assembler "bar1" } } */ +/* { dg-final { scan-assembler "bar2" } } */ +/* { dg-final { scan-assembler "bar3" } } */ +/* { dg-final { scan-assembler "bar4" } } */ +/* { dg-final { scan-assembler "bar5" } } */ +/* { dg-final { scan-assembler-not "bar6" } } */ + +extern void foo1 (void) __attribute__((externally_visible)); +void foo1 (void) { } + +extern void foo2 (void) __attribute__((externally_visible)); +__attribute__((externally_visible)) void foo2 (void) { } + +extern void foo3 (void); +__attribute__((externally_visible)) void foo3 (void) { } + +__attribute__((externally_visible)) void foo4 (void) { } + +void foo5 (void) { } +extern void foo5 (void) __attribute__((externally_visible)); + +void foo6 (void) { } + +extern char *bar1 __attribute__((externally_visible)); +char *bar1; + +extern char *bar2 __attribute__((externally_visible)); +char *bar2 __attribute__((externally_visible)); + +extern char *bar3; +char *bar3 __attribute__((externally_visible)); + +char *bar4 __attribute__((externally_visible)); + +char *bar5; +extern char *bar5 __attribute__((externally_visible)); + +char *bar6; + +int main (void) { }

Added: trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c (0 => 3424)

--- trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c (rev 0) +++ trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c 2009-06-04 01:50:44 UTC (rev 3424) <at> <at> -0,0 +1,33 <at> <at> +/* { dg-do compile } */ +/* { dg-options "-O -fwhole-program" } */ + +static void foo1 (void) { } /* { dg-warning "have effect only on public" } */ +extern void foo1 (void) __attribute__((externally_visible)); + +void foo2 (void) +{ + __attribute__((externally_visible)) void foo3 (void) { } /* { dg-warning "have effect only on public" } */ +} + +__attribute__((externally_visible)) static void foo3 (void) { } /* { dg-warning "have effect only on public" } */ + +static int bar1; +extern int bar1 __attribute__((externally_visible)); /* { dg-warning "have effect only on public" } */ + +static int bar2 __attribute__((externally_visible)); /* { dg-warning "have effect only on public" } */ + +void fn1 (void) +{ + static int bar3 __attribute__((externally_visible)); /* { dg-warning "have effect only on public" } */ +} + +void fn2 (void) +{ + int bar4 __attribute__((externally_visible)); /* { dg-warning "have effect only on public" } */ +} + +struct A +{ +} __attribute__((externally_visible)); /* { dg-warning "does not apply to types" } */ + +typedef int B __attribute__((externally_visible)); /* { dg-warning "attribute ignored" } */
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3424">3424</a>
Author <a href="http://blackfin.uclinux.org/gf/user/jiez/">jiez</a>
Date 2009-06-03 20:50:44 -0500 (Wed, 03 Jun 2009)
<h3>Log Message</h3>
Bug <a href="http://blackfin.uclinux.org/gf/tracker/5112">[#5112]</a> Backport the patch for the upstream bug 28744.

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkgcc41gccChangeLogbfin">trunk/gcc-4.1/gcc/ChangeLog.bfin</a></li>
<li><a href="#trunkgcc41gccccommonc">trunk/gcc-4.1/gcc/c-common.c</a></li>
<li><a href="#trunkgcc41gcccgraphh">trunk/gcc-4.1/gcc/cgraph.h</a></li>
<li><a href="#trunkgcc41gcccgraphunitc">trunk/gcc-4.1/gcc/cgraphunit.c</a></li>
<li><a href="#trunkgcc41gcctestsuiteChangeLogbfin">trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkgcc41gcctestsuitegdgparseattrexternallyvisible1C">trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C</a></li>
<li><a href="#trunkgcc41gcctestsuitegdgparseattrexternallyvisible2C">trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C</a></li>
<li><a href="#trunkgcc41gcctestsuitegccdgattrexternallyvisible1c">trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c</a></li>
<li><a href="#trunkgcc41gcctestsuitegccdgattrexternallyvisible2c">trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: trunk/gcc-4.1/gcc/ChangeLog.bfin (3423 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/ChangeLog.bfin	2009-06-04 00:48:25 UTC (rev 3423)
+++ trunk/gcc-4.1/gcc/ChangeLog.bfin	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -1,3 +1,20  <at>  <at> 
</span>+2009-06-04  Jie Zhang  &lt;jie.zhang@...&gt;
+
+	Apply
+	2006-08-17  Jakub Jelinek  &lt;jakub@...&gt;
+	PR c/28744
+	* cgraph.h (struct cgraph_node): Remove externally_visible
+	bitfield.
+	* cgraphunit.c (process_function_and_variable_attributes): Set
+	local.externally_visible rather than externally_visible.
+
+	PR c/28744
+	* c-common.c (handle_externally_visible_attribute): First look
+	at TREE_CODE and only if it is function or var decl, check for
+	non-public objects.  Don't warn for DECL_EXTERNAL.
+	* cgraphunit.c (process_function_and_variable_attributes): Warn
+	if externally_visible attribute is used on non-public object.
+
<span class="cx"> 2009-05-27  Bernd Schmidt  &lt;bernd.schmidt@...&gt;
</span><span class="cx"> 
</span><span class="cx"> 	* config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/gcc-4.1/gcc/c-common.c (3423 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/c-common.c	2009-06-04 00:48:25 UTC (rev 3423)
+++ trunk/gcc-4.1/gcc/c-common.c	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -4306,16 +4306,16  <at>  <at> 
</span><span class="cx"> {
</span><span class="cx">   tree node = *pnode;
</span><span class="cx"> 
</span>-  if ((!TREE_STATIC (node) &amp;&amp; TREE_CODE (node) != FUNCTION_DECL)
-      || !TREE_PUBLIC (node))
+  if (TREE_CODE (node) == FUNCTION_DECL || TREE_CODE (node) == VAR_DECL)
<span class="cx">     {
</span>-      warning (OPT_Wattributes,
-	       "%qE attribute have effect only on public objects", name);
-      *no_add_attrs = true;
+      if ((!TREE_STATIC (node) &amp;&amp; TREE_CODE (node) != FUNCTION_DECL
+	   &amp;&amp; !DECL_EXTERNAL (node)) || !TREE_PUBLIC (node))
+	{
+	  warning (OPT_Wattributes,
+		   "%qE attribute have effect only on public objects", name);
+	  *no_add_attrs = true;
+	}
<span class="cx">     }
</span>-  else if (TREE_CODE (node) == FUNCTION_DECL
-	   || TREE_CODE (node) == VAR_DECL)
-    ;
<span class="cx">   else
</span><span class="cx">     {
</span><span class="cx">       warning (OPT_Wattributes, "%qE attribute ignored", name);
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/gcc-4.1/gcc/cgraph.h (3423 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/cgraph.h	2009-06-04 00:48:25 UTC (rev 3423)
+++ trunk/gcc-4.1/gcc/cgraph.h	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -157,8 +157,6  <at>  <at> 
</span><span class="cx">   bool analyzed;
</span><span class="cx">   /* Set when function is scheduled to be assembled.  */
</span><span class="cx">   bool output;
</span>-  /* Set when function is visible by other units.  */
-  bool externally_visible;
<span class="cx">   /* Set for aliases once they got through assemble_alias.  */
</span><span class="cx">   bool alias;
</span><span class="cx"> };
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/gcc-4.1/gcc/cgraphunit.c (3423 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/cgraphunit.c	2009-06-04 00:48:25 UTC (rev 3423)
+++ trunk/gcc-4.1/gcc/cgraphunit.c	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -934,9 +934,16  <at>  <at> 
</span><span class="cx"> 	}
</span><span class="cx">       if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl)))
</span><span class="cx"> 	{
</span>-	  if (node-&gt;local.finalized)
-	    cgraph_mark_needed_node (node);
-	  node-&gt;externally_visible = true;
+	  if (! TREE_PUBLIC (node-&gt;decl))
+	    warning (OPT_Wattributes,
+		     "%J%&lt;externally_visible%&gt; attribute have effect only on public objects",
+		     node-&gt;decl);
+	  else
+	    {
+	      if (node-&gt;local.finalized)
+		cgraph_mark_needed_node (node);
+	      node-&gt;local.externally_visible = true;
+	    }
<span class="cx"> 	}
</span><span class="cx">     }
</span><span class="cx">   for (vnode = cgraph_varpool_nodes; vnode != first_var; vnode = vnode-&gt;next)
</span><span class="lines"> <at>  <at>  -950,9 +957,16  <at>  <at> 
</span><span class="cx"> 	}
</span><span class="cx">       if (lookup_attribute ("externally_visible", DECL_ATTRIBUTES (decl)))
</span><span class="cx"> 	{
</span>-	  if (vnode-&gt;finalized)
-	    cgraph_varpool_mark_needed_node (vnode);
-	  vnode-&gt;externally_visible = true;
+	  if (! TREE_PUBLIC (vnode-&gt;decl))
+	    warning (OPT_Wattributes,
+		     "%J%&lt;externally_visible%&gt; attribute have effect only on public objects",
+		     vnode-&gt;decl);
+	  else
+	    {
+	      if (vnode-&gt;finalized)
+		cgraph_varpool_mark_needed_node (vnode);
+	      vnode-&gt;externally_visible = true;
+	    }
<span class="cx"> 	}
</span><span class="cx">     }
</span><span class="cx"> }
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin (3423 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin	2009-06-04 00:48:25 UTC (rev 3423)
+++ trunk/gcc-4.1/gcc/testsuite/ChangeLog.bfin	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -1,3 +1,13  <at>  <at> 
</span>+2009-06-04  Jie Zhang  &lt;jie.zhang@...&gt;
+
+	Apply
+	2006-08-17  Jakub Jelinek  &lt;jakub@...&gt;
+	PR c/28744
+	* gcc.dg/attr-externally-visible-1.c: New test.
+	* gcc.dg/attr-externally-visible-2.c: New test.
+	* g++.dg/parse/attr-externally-visible-1.C: New test.
+	* g++.dg/parse/attr-externally-visible-2.C: New test.
+
<span class="cx"> 2009-05-17  Bernd Schmidt  &lt;bernd.schmidt@...&gt;
</span><span class="cx"> 
</span><span class="cx"> 	* gcc.c-torture/compile/20090527-1.c: New file.
</span></span>
</div>
<a></a>
<div class="addfile">
<h4>Added: trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C (0 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C	                        (rev 0)
+++ trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-1.C	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -0,0 +1,48  <at>  <at> 
</span>+// { dg-do compile }
+// { dg-options "-O3 -fwhole-program" }
+// { dg-final { scan-assembler "foo1" } }
+// { dg-final { scan-assembler "foo2" } }
+// { dg-final { scan-assembler "foo3" } }
+// { dg-final { scan-assembler "foo4" } }
+// { dg-final { scan-assembler "foo5" } }
+// { dg-final { scan-assembler-not "foo6" } }
+// { dg-final { scan-assembler "bar1" } }
+// { dg-final { scan-assembler "bar2" } }
+// { dg-final { scan-assembler "bar3" } }
+// { dg-final { scan-assembler "bar4" } }
+// { dg-final { scan-assembler "bar5" } }
+// { dg-final { scan-assembler-not "bar6" } }
+
+extern void foo1 (void) __attribute__((externally_visible));
+void foo1 (void) { }
+
+extern void foo2 (void) __attribute__((externally_visible));
+__attribute__((externally_visible)) void foo2 (void) { }
+
+extern void foo3 (void);
+__attribute__((externally_visible)) void foo3 (void) { }
+
+__attribute__((externally_visible)) void foo4 (void) { }
+
+void foo5 (void) { }
+extern void foo5 (void) __attribute__((externally_visible));
+
+void foo6 (void) { }
+
+extern char *bar1 __attribute__((externally_visible));
+char *bar1;
+
+extern char *bar2 __attribute__((externally_visible));
+char *bar2 __attribute__((externally_visible));
+
+extern char *bar3;
+char *bar3 __attribute__((externally_visible));
+
+char *bar4 __attribute__((externally_visible));
+
+char *bar5;
+extern char *bar5 __attribute__((externally_visible));
+
+char *bar6;
+
+int main (void) { }
</span>
</div>
<a></a>
<div class="addfile">
<h4>Added: trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C (0 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C	                        (rev 0)
+++ trunk/gcc-4.1/gcc/testsuite/g++.dg/parse/attr-externally-visible-2.C	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -0,0 +1,38  <at>  <at> 
</span>+// { dg-do compile }
+// { dg-options "-O -fwhole-program" }
+
+static void foo1 (void) { }					// { dg-warning "have effect only on public" }
+extern void foo1 (void) __attribute__((externally_visible));
+
+struct C
+{
+  __attribute__((externally_visible)) void foo3 (void) { }
+};
+
+__attribute__((externally_visible)) static void foo3 (void) { }	// { dg-warning "have effect only on public" }
+
+static int bar1;
+extern int bar1 __attribute__((externally_visible));		// { dg-warning "have effect only on public" }
+
+static int bar2 __attribute__((externally_visible));		// { dg-warning "have effect only on public" }
+
+void fn1 (void)
+{
+  static int bar3 __attribute__((externally_visible));		// { dg-warning "have effect only on public" }
+}
+
+void fn2 (void)
+{
+  int bar4 __attribute__((externally_visible));			// { dg-warning "have effect only on public" }
+}
+
+struct A
+{
+} __attribute__((externally_visible));				// { dg-warning "does not apply to types" }
+
+typedef int B __attribute__((externally_visible));		// { dg-warning "attribute ignored" }
+
+struct D
+{
+  static int d __attribute__((externally_visible));
+};
</span>
</div>
<a></a>
<div class="addfile">
<h4>Added: trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c (0 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c	                        (rev 0)
+++ trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-1.c	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -0,0 +1,48  <at>  <at> 
</span>+/* { dg-do compile } */
+/* { dg-options "-O3 -fwhole-program" } */
+/* { dg-final { scan-assembler "foo1" } } */
+/* { dg-final { scan-assembler "foo2" } } */
+/* { dg-final { scan-assembler "foo3" } } */
+/* { dg-final { scan-assembler "foo4" } } */
+/* { dg-final { scan-assembler "foo5" } } */
+/* { dg-final { scan-assembler-not "foo6" } } */
+/* { dg-final { scan-assembler "bar1" } } */
+/* { dg-final { scan-assembler "bar2" } } */
+/* { dg-final { scan-assembler "bar3" } } */
+/* { dg-final { scan-assembler "bar4" } } */
+/* { dg-final { scan-assembler "bar5" } } */
+/* { dg-final { scan-assembler-not "bar6" } } */
+
+extern void foo1 (void) __attribute__((externally_visible));
+void foo1 (void) { }
+
+extern void foo2 (void) __attribute__((externally_visible));
+__attribute__((externally_visible)) void foo2 (void) { }
+
+extern void foo3 (void);
+__attribute__((externally_visible)) void foo3 (void) { }
+
+__attribute__((externally_visible)) void foo4 (void) { }
+
+void foo5 (void) { }
+extern void foo5 (void) __attribute__((externally_visible));
+
+void foo6 (void) { }
+
+extern char *bar1 __attribute__((externally_visible));
+char *bar1;
+
+extern char *bar2 __attribute__((externally_visible));
+char *bar2 __attribute__((externally_visible));
+
+extern char *bar3;
+char *bar3 __attribute__((externally_visible));
+
+char *bar4 __attribute__((externally_visible));
+
+char *bar5;
+extern char *bar5 __attribute__((externally_visible));
+
+char *bar6;
+
+int main (void) { }
</span>
</div>
<a></a>
<div class="addfile">
<h4>Added: trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c (0 =&gt; 3424)</h4>
<span>
<span class="info">--- trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c	                        (rev 0)
+++ trunk/gcc-4.1/gcc/testsuite/gcc.dg/attr-externally-visible-2.c	2009-06-04 01:50:44 UTC (rev 3424)
</span><span class="lines"> <at>  <at>  -0,0 +1,33  <at>  <at> 
</span>+/* { dg-do compile } */
+/* { dg-options "-O -fwhole-program" } */
+
+static void foo1 (void) { }					/* { dg-warning "have effect only on public" } */
+extern void foo1 (void) __attribute__((externally_visible));
+
+void foo2 (void)
+{
+  __attribute__((externally_visible)) void foo3 (void) { }	/* { dg-warning "have effect only on public" } */
+}
+
+__attribute__((externally_visible)) static void foo3 (void) { }	/* { dg-warning "have effect only on public" } */
+
+static int bar1;
+extern int bar1 __attribute__((externally_visible));		/* { dg-warning "have effect only on public" } */
+
+static int bar2 __attribute__((externally_visible));		/* { dg-warning "have effect only on public" } */
+
+void fn1 (void)
+{
+  static int bar3 __attribute__((externally_visible));		/* { dg-warning "have effect only on public" } */
+}
+
+void fn2 (void)
+{
+  int bar4 __attribute__((externally_visible));			/* { dg-warning "have effect only on public" } */
+}
+
+struct A
+{
+} __attribute__((externally_visible));				/* { dg-warning "does not apply to types" } */
+
+typedef int B __attribute__((externally_visible));		/* { dg-warning "attribute ignored" } */
</span>
</div>
</div>

</div>
jiez | 4 Jun 2009 04:13
Favicon

[3425] branches/toolchain_09r1_branch/uClibc: Backport UCLIBC_HAS_STUBS config option from the upstream.

Revision 3425 Author jiez Date 2009-06-03 21:13:39 -0500 (Wed, 03 Jun 2009)

Log Message

Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc provide fork() stub on NOMMU targets. It's default off.

Modified Paths

Diff

Modified: branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in (3424 => 3425)

--- branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in 2009-06-04 01:50:44 UTC (rev 3424) +++ branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in 2009-06-04 02:13:39 UTC (rev 3425) <at> <at> -519,6 +519,23 <at> <at> Currently applies to bcopy/bzero/bcmp/index/rindex et al. WARNING! ABI incompatibility. +config UCLIBC_HAS_STUBS + bool "Provide stubs for unavailable functionality" + default n + help + With this option uClibc provides non-functional stubs for + functions which are impossible to implement on the target + architecture. Otherwise, such functions are simply omitted. + + As of 2008-07, this option makes uClibc provide fork() stub + on NOMMU targets. It always sets errno to ENOSYS and returns -1. + + This may be useful if you port a lot of software and cannot + audit all of it and replace or disable fork() usage. + With this option, a program which uses fork() will build + successfully. Of course, it may be useless if fork() + is essential for its operation. + config UCLIBC_HAS_SHADOW bool "Shadow Password Support" default y

Modified: branches/toolchain_09r1_branch/uClibc/include/unistd.h (3424 => 3425)

--- branches/toolchain_09r1_branch/uClibc/include/unistd.h 2009-06-04 01:50:44 UTC (rev 3424) +++ branches/toolchain_09r1_branch/uClibc/include/unistd.h 2009-06-04 02:13:39 UTC (rev 3425) <at> <at> -717,7 +717,7 <at> <at> #endif -#if 1 || defined __ARCH_USE_MMU__ +#if defined __UCLIBC_HAS_STUBS__ || defined __ARCH_USE_MMU__ /* Clone the calling process, creating an exact copy. Return -1 for errors, 0 to the new process, and the process ID of the new process to the old process. */

Modified: branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c (3424 => 3425)

--- branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c 2009-06-04 01:50:44 UTC (rev 3424) +++ branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c 2009-06-04 02:13:39 UTC (rev 3425) <at> <at> -11,19 +11,26 <at> <at> #include <unistd.h> #ifdef __ARCH_USE_MMU__ + #ifdef __NR_fork extern __typeof(fork) __libc_fork; #define __NR___libc_fork __NR_fork -_syscall0(pid_t, __libc_fork); +_syscall0(pid_t, __libc_fork) +libc_hidden_proto(fork) +weak_alias(__libc_fork,fork) +libc_hidden_weak(fork) #endif -#else + +#elif defined __UCLIBC_HAS_STUBS__ + pid_t __libc_fork(void) { __set_errno(ENOSYS); return -1; } -#endif libc_hidden_proto(fork) weak_alias(__libc_fork,fork) libc_hidden_weak(fork) link_warning(fork, "fork: this function is not implemented on no-mmu systems") + +#endif \ No newline at end of file

Modified: branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c (3424 => 3425)

--- branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c 2009-06-04 01:50:44 UTC (rev 3424) +++ branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c 2009-06-04 02:13:39 UTC (rev 3425) <at> <at> -55,7 +55,6 <at> <at> libc_hidden_proto(dup2) libc_hidden_proto(setsid) libc_hidden_proto(chdir) -libc_hidden_proto(fork) #ifndef __ARCH_USE_MMU__ #include <sys/syscall.h> <at> <at> -82,6 +81,8 <at> <at> return ret; } #else +libc_hidden_proto(fork) + static inline pid_t fork_parent(void) { switch (fork()) {
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3425">3425</a>
Author <a href="http://blackfin.uclinux.org/gf/user/jiez/">jiez</a>
Date 2009-06-03 21:13:39 -0500 (Wed, 03 Jun 2009)
<h3>Log Message</h3>
Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes uClibc provide fork() stub on NOMMU targets. It's default off.

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchestoolchain_09r1_branchuClibcextraConfigsConfigin">branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in</a></li>
<li><a href="#branchestoolchain_09r1_branchuClibcincludeunistdh">branches/toolchain_09r1_branch/uClibc/include/unistd.h</a></li>
<li><a href="#branchestoolchain_09r1_branchuClibclibcsysdepslinuxcommonforkc">branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c</a></li>
<li><a href="#branchestoolchain_09r1_branchuClibclibcunistddaemonc">branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in (3424 =&gt; 3425)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in	2009-06-04 01:50:44 UTC (rev 3424)
+++ branches/toolchain_09r1_branch/uClibc/extra/Configs/Config.in	2009-06-04 02:13:39 UTC (rev 3425)
</span><span class="lines"> <at>  <at>  -519,6 +519,23  <at>  <at> 
</span><span class="cx"> 	  Currently applies to bcopy/bzero/bcmp/index/rindex et al.
</span><span class="cx"> 	  WARNING! ABI incompatibility.
</span><span class="cx"> 
</span>+config UCLIBC_HAS_STUBS
+	bool "Provide stubs for unavailable functionality"
+	default n
+	help
+	  With this option uClibc provides non-functional stubs for
+	  functions which are impossible to implement on the target
+	  architecture. Otherwise, such functions are simply omitted.
+
+	  As of 2008-07, this option makes uClibc provide fork() stub
+	  on NOMMU targets. It always sets errno to ENOSYS and returns -1.
+
+	  This may be useful if you port a lot of software and cannot
+	  audit all of it and replace or disable fork() usage.
+	  With this option, a program which uses fork() will build
+	  successfully. Of course, it may be useless if fork()
+	  is essential for its operation.
+
<span class="cx"> config UCLIBC_HAS_SHADOW
</span><span class="cx"> 	bool "Shadow Password Support"
</span><span class="cx"> 	default y
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/uClibc/include/unistd.h (3424 =&gt; 3425)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/uClibc/include/unistd.h	2009-06-04 01:50:44 UTC (rev 3424)
+++ branches/toolchain_09r1_branch/uClibc/include/unistd.h	2009-06-04 02:13:39 UTC (rev 3425)
</span><span class="lines"> <at>  <at>  -717,7 +717,7  <at>  <at> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> 
</span>-#if 1 || defined __ARCH_USE_MMU__
+#if defined __UCLIBC_HAS_STUBS__ || defined __ARCH_USE_MMU__
<span class="cx"> /* Clone the calling process, creating an exact copy.
</span><span class="cx">    Return -1 for errors, 0 to the new process,
</span><span class="cx">    and the process ID of the new process to the old process.  */
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c (3424 =&gt; 3425)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c	2009-06-04 01:50:44 UTC (rev 3424)
+++ branches/toolchain_09r1_branch/uClibc/libc/sysdeps/linux/common/fork.c	2009-06-04 02:13:39 UTC (rev 3425)
</span><span class="lines"> <at>  <at>  -11,19 +11,26  <at>  <at> 
</span><span class="cx"> #include &lt;unistd.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #ifdef __ARCH_USE_MMU__
</span>+
<span class="cx"> #ifdef __NR_fork
</span><span class="cx"> extern __typeof(fork) __libc_fork;
</span><span class="cx"> #define __NR___libc_fork __NR_fork
</span>-_syscall0(pid_t, __libc_fork);
+_syscall0(pid_t, __libc_fork)
+libc_hidden_proto(fork)
+weak_alias(__libc_fork,fork)
+libc_hidden_weak(fork)
<span class="cx"> #endif
</span>-#else
+
+#elif defined __UCLIBC_HAS_STUBS__
+
<span class="cx"> pid_t __libc_fork(void)
</span><span class="cx"> {
</span><span class="cx"> 	__set_errno(ENOSYS);
</span><span class="cx"> 	return -1;
</span><span class="cx"> }
</span>-#endif
<span class="cx"> libc_hidden_proto(fork)
</span><span class="cx"> weak_alias(__libc_fork,fork)
</span><span class="cx"> libc_hidden_weak(fork)
</span><span class="cx"> link_warning(fork, "fork: this function is not implemented on no-mmu systems")
</span>+
+#endif
<span class="cx">\ No newline at end of file
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c (3424 =&gt; 3425)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c	2009-06-04 01:50:44 UTC (rev 3424)
+++ branches/toolchain_09r1_branch/uClibc/libc/unistd/daemon.c	2009-06-04 02:13:39 UTC (rev 3425)
</span><span class="lines"> <at>  <at>  -55,7 +55,6  <at>  <at> 
</span><span class="cx"> libc_hidden_proto(dup2)
</span><span class="cx"> libc_hidden_proto(setsid)
</span><span class="cx"> libc_hidden_proto(chdir)
</span>-libc_hidden_proto(fork)
<span class="cx"> 
</span><span class="cx"> #ifndef __ARCH_USE_MMU__
</span><span class="cx"> #include &lt;sys/syscall.h&gt;
</span><span class="lines"> <at>  <at>  -82,6 +81,8  <at>  <at> 
</span><span class="cx"> 	return ret;
</span><span class="cx"> }
</span><span class="cx"> #else
</span>+libc_hidden_proto(fork)
+
<span class="cx"> static inline pid_t fork_parent(void)
</span><span class="cx"> {
</span><span class="cx"> 	switch (fork()) {
</span></span>
</div>
</div>

</div>
jiez | 4 Jun 2009 04:15
Favicon

[3426] branches/toolchain_09r1_branch/buildscript-experimental: Steal Mike' s change r3126 for BuildToolChain.

Revision 3426 Author jiez Date 2009-06-03 21:15:01 -0500 (Wed, 03 Jun 2009)

Log Message

Steal Mike's change r3126 for BuildToolChain.

Modified Paths

Diff

Modified: branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build (3425 => 3426)

--- branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build 2009-06-04 02:13:39 UTC (rev 3425) +++ branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build 2009-06-04 02:15:01 UTC (rev 3426) <at> <at> -31,7 +31,7 <at> <at> APP_NAME=$0 -DIR_APP=`dirname $APP_NAME` +DIR_APP=$(cd $(dirname $APP_NAME) && pwd) APP_NAME=${APP_NAME#.} APP_NAME=${APP_NAME#/} START=$(date +%s)

Modified: branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest (3425 => 3426)

--- branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest 2009-06-04 02:13:39 UTC (rev 3425) +++ branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest 2009-06-04 02:15:01 UTC (rev 3426) <at> <at> -25,7 +25,7 <at> <at> APP_NAME=$0 -DIR_APP=$PWD/`dirname $APP_NAME` +DIR_APP=$(cd $(dirname $APP_NAME) && pwd) DIR_BOARDS=$DIR_APP/boards/ APP_NAME=${APP_NAME#.} APP_NAME=${APP_NAME#/}
<div>

<div>
Revision <a href="http://blackfin.uclinux.org/gf/project/toolchain/scmsvn/?action=browse&amp;path=/&amp;view=rev&amp;root=toolchain&amp;revision=3426">3426</a>
Author <a href="http://blackfin.uclinux.org/gf/user/jiez/">jiez</a>
Date 2009-06-03 21:15:01 -0500 (Wed, 03 Jun 2009)
<h3>Log Message</h3>
Steal Mike's change r3126 for BuildToolChain.

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchestoolchain_09r1_branchbuildscriptexperimentaltoolchainbuild">branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build</a></li>
<li><a href="#branchestoolchain_09r1_branchbuildscriptexperimentaltoolchainregtest">branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest</a></li>
</ul>
</div>
<div>
<h3>Diff</h3>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build (3425 =&gt; 3426)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build	2009-06-04 02:13:39 UTC (rev 3425)
+++ branches/toolchain_09r1_branch/buildscript-experimental/toolchain-build	2009-06-04 02:15:01 UTC (rev 3426)
</span><span class="lines"> <at>  <at>  -31,7 +31,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> APP_NAME=$0
</span>-DIR_APP=`dirname $APP_NAME`
+DIR_APP=$(cd $(dirname $APP_NAME) &amp;&amp; pwd)
<span class="cx"> APP_NAME=${APP_NAME#.}
</span><span class="cx"> APP_NAME=${APP_NAME#/}
</span><span class="cx"> START=$(date +%s)
</span></span>
</div>
<a></a>
<div class="modfile">
<h4>Modified: branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest (3425 =&gt; 3426)</h4>
<span>
<span class="info">--- branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest	2009-06-04 02:13:39 UTC (rev 3425)
+++ branches/toolchain_09r1_branch/buildscript-experimental/toolchain-regtest	2009-06-04 02:15:01 UTC (rev 3426)
</span><span class="lines"> <at>  <at>  -25,7 +25,7  <at>  <at> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> APP_NAME=$0
</span>-DIR_APP=$PWD/`dirname $APP_NAME`
+DIR_APP=$(cd $(dirname $APP_NAME) &amp;&amp; pwd)
<span class="cx"> DIR_BOARDS=$DIR_APP/boards/
</span><span class="cx"> APP_NAME=${APP_NAME#.}
</span><span class="cx"> APP_NAME=${APP_NAME#/}
</span></span>
</div>
</div>

</div>

Gmane