软件大小:33.5 MB 软件性质: 免费软件
更新时间:2013-10-15 09:50:31 应用平台:Win9X/Win2000/WinXP
下载次数:4081 下载来源:manbetx手机版
软件语言:英文 软件类别:ARM开发工具 > RVDS 开发工具
RVCT 4.0 Web Patch #4 Build 650 Release Notes


This RealView Compilation Tools (RVCT) 4.0 Web Patch #4 Build 650 is intended for use with RealView
Developer Suite (RVDS) 4.0 products.  It can be used to update any RVDS 4.0 Standard, Professional
or Evaluation installation, whether previously patched or an original installation.  It is NOT 
compatible with other releases of RVCT/RVDS or Keil MDK products.

This patch consists of updated RVCT/RVDS 4.0 compiler, linker, assembler, fromelf, and armar 
Program executables; updated Include files and updated C/C++ libraries.

New Enhancements in this Release

[New Core Support]

    *  Support for ARM's new Cortex A5 processor

[Changes made to improve compatibility with other toolchains]

    *  With Link Time Code Generation (--ltcg), if constant data in one translation unit was imported into another translation unit by an external reference not qualified as 'const', the data might have been put in a writable section. The data now always goes into a read-only section.  Note that such a program does not strictly conform to C, which requires a symbol with external linkage to have consistent types everywhere it is declared.  [721646]

    *  The compiler's handling of filename extensions now better matches existing conventions. The extensions .ac, .tc and similar are no longer treated as C source when the --gnu_defaults option is used; instead they are passed through to the linker. Additionally .sx (and .S on Unix hosts) now indicates assembler source that needs pre-processing.  [720541, 644030]

    *  The compiler now supports #pragma weak.  This is a deprecated language extension to mark symbols as weak or to define weak aliases of symbols, as an alternative to using the existing __weak keyword or the GCC 'weak' and 'alias' attributes.  [720667]

    *  The compiler now supports integer priority indications on the GNU C 'constructor' and 'destructor' attributes.  Constructors with a lower priority are called before constructors with a higher priority.  [722671]

    *  The compiler now supports the new GCC 'pcs' attribute to specify the calling convention on targets with hardware floating-point, as an alternative to the existing __softfp keyword.  __attribute__((pcs("aapcs-vfp"))) uses floating-point registers; __attribute__((pcs("aapcs"))) uses integer registers, as for __softfp.  [721049]

    *  In GNU mode the compiler now implements "#pragma GCC system_header".  This causes subsequent declarations in the current file to be marked as occurring in a system header. This can have an effect on the severity of some diagnostics.  [723702]

    *  In GNU C++ mode, the compiler now allows the 'template' keyword to be omitted in certain situations where the C++ standard requires it.  [722869]

    *  In GNU mode, a pointer to a function is now considered to be compatible with a reference to a function for partial ordering purposes in function overload processing. Some sources that would be diagnosed as ambiguous in standard mode now compile in GNU mode.  [715526]

    *  Selecting --gnu_defaults mode (as implied by --arm_linux) enables --allow_null_this, giving well-defined behavior when a non-virtual member function is called on a null object pointer.  [723911]

    *  The compiler command line option "--gnu_defaults" option no longer implies --enum_is_int, to be consistent with typical defaults for GCC. This switch still enables --gnu, --no_debug_macros, --signed_bitfields, --wchar32, and --no_hide_all. [719559]

    *  Some GCC command line translations for rare and legacy GCC options have been added.  [722785]

    *  When generating dependency lines for a makefile (e.g. with --md or -M) and the source is taken from standard input, the compiler will no longer generate a line in the output that gives a dependency on '<stdin>'.  [723556]

    *  When using multifile compilation and including the glibc math.h header, conflicts could be reported with the __fabs or __fabsf functions. This has been fixed, and no conflicts will be reported when --gnu (or another option that implies --gnu) is used.  [722614]

    *  The arm_linux subdirectory in the RVCT header files has now been split into arm_linux and arm_linux_compat subdirectories. The arm_linux_compat subdirectory now contains those header files required for compatibility with the glibc header files that were previously in the arm_linux subdirectory. In the ARM Linux-targeting modes --arm_linux, --arm_linux_paths and with GCC command-line translation, the compiler will prepend the arm_linux_compat subdirectory to the system include search path, and it will now append the arm_linux subdirectory to the search path. This improves compatibility with certain applications that depend on the exact include order of these files, when they are included from the glibc headers.  [723765]

    *  armlink now follows GNU toolchain behaviour when handling constructor/destructor sections with  priorities. Prioritised constructors are now ordered in the same way as GNU in relation to un-prioritised ones and are kept by the --arm_linux switch.  [722673]

    *  Error L6654E is now suppressed when linking with --arm_linux, to prevent errors when linking with some GCC-compiled code.  [723142]

    *  The GNU linker LD has a control script that tells the linker to define symbols at various points of the ELF image. Armlink used to define only the symbols needed by the ARM linux start-up code. It now defines all the symbols present in the default control script if they are referenced. The supported symbols are: __executable_start (executables only), etext, _etext, __etext, __data_start, edata, _edata, __bss_start, __bss_start__, __bss_end__, end, _end, __end, _bss_end__.  In addition the linker will always define the symbol _DYNAMIC when there is .dynamic section.  [720112]

    *  A new "--undefined=<symbol>" switch has been added to the linker, which creates a reference to the specified symbol.  This can be used, for example, to cause the linker to load a particular definition from a library and ensure that it is not removed through unused section elimination.  The reference is created with STV_DEFAULT visibility.  This matches the behaviour of the corresponding GNU ld switch.  [719570]

    *  A new "--undefined_and_export=<symbol>" switch has been added. This creates an STV_DEFAULT visibility reference to <symbol> in the same way as --undefined=<symbol>. If the definition of <symbol> has STV_DEFAULT or STV_PROTECTED visibility, it will also be placed in the dynamic symbol table as though an "EXPORT symbol" steering file command had been used. If the symbol has STV_HIDDEN visibility it will not be placed in the dynamic symbol table unless "--overide_visibility" is also specified.  [719570]

[Changes to improve tolerance to errors in input files]

    *  The default for the linker's --[no_]muldefweak option has been changed to --muldefweak.  When multiple definitions of a weak symbol exist, this causes armlink to select the first of these rather than produce an error.   [720148]

    *  It is now possible to downgrade linker errors 6682 and 6683 caused by faulty string merge sections. Downgrading these will disable string merging.  [719900]

    *  Faulty relocations in linker input files will now produce downgradable errors rather than fatal errors.
    Downgrading the following errors will cause the relocation to be skipped: L6217E, L6286E, L6738E, L6769E, L6781E, L6923E, L6924E.
    Downgrading the following errors will cause the relocation to be processed despite the error condition: L6237E, L6241E, L6802E, L6898E

    *  The linker's file write (L6002U) errors can now be downgraded to warnings for non-critical outputs. Non-critical outputs are the files specified by the --feedback, --symdef, --callgraph and --list options.   [719898]

    *  The linker error message "L6242E: Cannot link object <objname> as its attributes are incompatible with the image attributes" could be given when an object claims to support VFPv2 or VFPv3 yet does not have support for the VMOV d, r, r instruction needed by the ARM VFP libraries. In this situation, armlink now issues the error "L6482E: Image Attributes have no support for VMOV d,r,r and VMOV r,r,d instructions used by C-Libraries, please use the --cpu and --fpu options to select a core that supports these instructions".  This error message is suppressible, which may result in the linker selecting a floating point library which uses VFPv2 instructions.  [720433]

[Improvements to floating point support]

    *  Hardware floating-point linkage is now supported for ARM Linux. However, software floating-point linkage will be used by default, including cases where a --cpu option is specified that implicitly support hardware floating-point. In order to use hardware floating point linkage when targeting ARM Linux, you must explicitly specify this with an appropriate --fpu option (e.g. --fpu=vfpv3) or --apcs=/hardfp. Note that hardware floating-point linkage is not supported by the ARM Linux ABI supplement (, and the compiler will issue a warning to indicate this.  [720519]

    *  The following options have been added to the --library_interface command line switch:


These options cause calls to the C library (including math libraries) to use the Hardware floating-point calling convention.  It is an error to use these library interfaces when compiling with --fpu=softvfp.   [721565]

    *  The performance of some floating-point routines in microlib has been significantly improved.  [678021]

[General Enhancements]

    *  Support for Windows 7

    *  Intrinsics have been added to the compiler for __smladx, __smlaldx, __smlsdx, __smlsldx, __smuadx and __smusdx, with the same signatures as the existing intrinsics such as __smlad.  These generate the 'X' variants of the instructions, with the half-words swapped in the relevant operand.  [721831]

    *  Vectorisation has been improved, enabling some loops to be vectorised that previously could not be.  [670517]
    *  The compiler now passes the option --[no_]hide_all through to the assembler when invoking it on assembler sources or embedded assembler.  This sets the default visibility for symbol when using dynamic linkage.  [512423]
    *  It is now possible to declare an embedded assembler function as static.  Previously, declaring an __asm function as static would cause error #1122, or internal error 0xafc2db when 'static' occurred on a separate prototype.  [720153]
    *  A new compiler option --[no_]rtti_data has been added, to control the generation of C++ RTTI data.  The option --no_rtti only disables source-level RTTI features such as dynamic_cast, while  --no_rtti_data disables both source-level features and the generation of RTTI data.  When using GCC translation, -fno-rtti implies --no_rtti_data.  [721182]
    *  The compiler has a new option -P. This performs preprocessing of the input without compilation, as with -E, however this option does not generate line markers in the preprocessed output. This might be used when preprocessed output is to be parsed by another script or utility.   [719509]
    *  The compiler now accepts input from character devices such as /dev/null. Formerly these would be faulted as invalid.  Note that the --compile_all_input option will normally be required to have such names treated as source.  [723224]
    *  A new linker switch "--export-dynamic" is now available, which exports non-hidden symbols only if there is a dynamic segment already in the image.  This is in addition to the switch "--export-all" which cannot be used to produce a statically linked image because it will always export non-hidden symbols, forcing the creation of a dynamic segment.  [720121]
    *  The linker will now warn when IMPORT or EXPORT commands in a steering file can not be applied because the --override_visibility switch has not been specified on the command line.  [677320]

    *  When creating a shared library, the --symbolic option is used to prevent the dynamic loader from overriding global definitions within the shared library. Armlink now takes advantage of this knowledge and does not create a PLT entry for references coming from the same library.  [721954]
    *  armlink now accepts C-style multi-line comments in its symver scripts and scatter files.  [720472]

OS Platforms

This patch has been tested on the following supported platforms:

Windows 7 (NEW)
Windows XP SP2, 32-bit & 64-bit
Windows XP SP3, 32-bit
Windows Vista Business Edition SP1, 32-bit & 64-bit
Windows Vista Enterprise Edition SP1, 32-bit & 64-bit
Windows Server 2003 32-bit & 64-bit
Red Hat Linux Enterprise 4 for x86, 32-bit & 64-bit
Red Hat Linux Enterprise 5 for x86, 32-bit & 64-bit
Solaris for SPARC 10

In addition, the patch has been tested on the following non-supported platforms:

Windows 2000 SP4
SUSE Linux 9.2
Ubuntu Linux 8.10

Installation Instructions 

To install the patch carry out the following steps:

1) Extract the contents of the archive into a temporary directory.

2) Ensure that you are currently using RVCT 4.0.  To do this, type:

     armcc --vsn

   and ensure that this returns RVCT 4.0 build 400 or later.  Then type:

     which armcc

   This will tell you the subdirectory that armcc is located in.

3) Copy the include directory from the temporary directory to replace your existing include 
   directory.  The existing directory can be located by the RVCT40INC environment variable, eg:

     > echo $RVCT40INC

4) Copy the lib directory from the temporary directory to replace your existing lib directory. The existing directory can be located by the RVCT40LIB environment variable, eg:

     > echo $RVCT40LIB

5) Copy the linux-pentium directory from the temporary directory to replace your existing 
   linux-pentium directory. The existing directory can be located by the RVCT40BIN environment variable, eg:

     > echo $RVCT40BIN

6) The updated tools should now have been installed.  To confirm this, type:

     armcc --vsn
     armlink --vsn
     armasm --vsn
     fromelf --vsn
     armar --vsn

   The version returned should be RVCT 4.0 build 650.

8) After unzipping the executables, you may find that they cannot be executed because the UNIX
   permissions have been reset.  The workaround is to set the execute permissions for the user 
   with, e.g:
     chmod u+x armcc

RVCT 4.0 patch build 650 includes the following corrections since RVCT 4.0 build 591:


    *  The compiler now has an option --[no_]type_traits_helpers to enable support for type traits helpers like __is_union and __has_virtual_destructor.  The helpers were enabled in non-GNU C++ mode by default, and were also enabled when emulating g++ 4.3 or later.  The only change is to provide this option to allow the default to be overridden.  [721045]

    *  A problem has been fixed with code generated for switch statements when using profile-guided optimization. [720056]

    *  In some situations the compiler would incorrectly re-use the base register of a load, causing the offset of a subsequent load to overflow, which has now been fixed. [720891]

    *  In GNU C mode, static tables of relative label offsets of the form "&&a - &&b" could contain incorrect data.  This is now fixed.  [721194]
    *  Fusing nested loops can result in an upper bound that exceeds the datatype limit.  In some circumstances, the compiler failed to avoid this situation, which has been fixed.  [722205]

    *  Passing a char array as the format string argument of a printf function whose return value is used would incorrectly cause the symbol _scanf_wstring to be referenced.  This has been fixed.  [723780]

    *  printf will no longer be linked in if all sections containing a call to it have been removed by unused section elimination.  [667818]
    *  Previously, attempting to use the symbol rename keyword __asm("name") on the prototype of an embedded assembler function did not work, because the embedded assembler would use the original C name.  This is now fixed: the supplied assembler name is used. [721806]

    *  C++ exceptions generation could provoke a crash in a situation where a switch statement occurred in the lifetime of a local variable of class type with an empty destructor body.  This is now fixed.  [721019]

    *  C++ class methods declared inline (either implicitly or explicitly) and that were placed in named ELF section, could produce linker failures when compiling with DWARF2 Debug information (--debug --dwarf2).  This has been fixed.  [723369]

    *  Some causes of the following internal faults have been fixed: 0xe664d6, 0xfc68b8, 0x87ecef, 0xafee20, 0x9f28b9 & 0x0d9491  [720108, 722435, 722511, 722766, 723231 & 723245]


    *  Improved the accuracy of detection of A1546W for MOV and MVN instructions with SP as destination register. [720034]

    *  SRS with an invalid mode number is now an error. You can use --diag_warning=1584 to get previous behaviour. [720203]

    *  Assembler no longer accepts and produces invalid code for NEON VSHL and VQSHL instructions with immediate shift equal to the size of the data type.  [719812]

    *  YIELD, WFE, WFI and SEV are now diagnosed as behaving as NOP (diagnostic 1807) on ARM1136-rev1 and ARM1176.  [719465]

    *  Improved architectural diagnosis of unpredictable instructions in disassembly.  [720255]

    *  Assembling a pc-relative LDRD on a not word-aligned offset in ARMv7-M is now diagnosed unpredictable.  [720720]


    *  Fixed a problem with steering files that contain both IMPORT * and EXPORT *. Armlink will no longer give the error message Error: L6279E: Ambiguous selectors found for <symbol> ('IMPORT *' and 'EXPORT *'). [719859]

    *  The RENAME symbol command in linker steering files will no longer rename a Lib$$Request symbol entry, as this would break library searching.  [719736]

    *  armlink no longer erroneously produces "Error: L6236E: No section matches selector - no section to be FIRST/LAST." for scatter files when --no_veneershare is selected.  [720539]

    *  armlink --show_cmdline now shows input object files and libraries as in earlier releases.  [720197]
    *  The linker could lose ZI sections when using __AT sections that are assigned to Execution Regions that contain both RW and ZI sections. This has now been fixed. [720096}
    *  Partial linking object files could lose the SHF_STRINGS flag of a Section that is also part of a Group. If the partial object is used in a subsequent link and the group containing the section is selected then the linker would issue error L6883E. This is now fixed.  [720254]
    *  In some cases an ELF object produced by GCC can have a relocation to the symbol at index 0. This is usually an error by the object producer so armlink displays error message L6029 unless the relocation is of type R_ARM_V4BX. When partial linking with this error downgraded (or using objects with R_ARM_V4BX relocations) an internal error can occur.  This has now been fixed.  [721112]
    *  The linker now supports the option --[no_]merge_partial_comdat that controls whether SHF_COMDAT groups are merged when partial linking.  [720884]
    *  If the linker could not place a veneer close enough to the call site due to large ELF section, the linker could loop infinitely trying to generate veneers for the section. This is now fixed.  [720424]
    *  The linker could crash if an input object contains an invalid VFE Section.  This has been fixed, and the error messages for invalid VFE information (L6643, L6644, L6645, L6656) can now be suppressed. If the linker encounters an error and the message has been suppressed it will switch the VFE optimisation off, which is the equivalent of using the --vfemode=off switch on the command line.  [720128 & 719899]
    *  The linker could underestimate the size of the GOT section when linking with --sysv (as implied  by --arm_linux) when a TLS relocation R_ARM_TLS_LDM32 is present in the image. This may cause problems when the relocation is resolved, either by the dynamic linker, or by armlink when statically linking.  This has now been fixed.  [723207]
    *  A problem could occur when linking an application against a shared library that contains a weak-alias for a global data symbol, and both the library and the application refer to the weak-alias. For the application the linker must import the non-weak symbol at the same address as the weak alias, and must re-define and export the weak-alias as a definition. This will allow both the application and the library to use the same copy of the data item. Previously, the weak-alias was not exported from the application so the library and the application use different copies of the data. This has now been fixed and armlink will export the weak-alias.  [720795]
    *  L6260E could be generated when automatically placing .ARM.__AT sections whose base address + size is greater than 0xFFFFFFFF. This is now fixed  [721272]
    *  When using microlib under certain conditions, the linker could incorrectly generate the error "Fatal error: L6787U: Region table handler '__scatterload_null' needed by entry for ER_DECOMPRESS was not found".  This has now been fixed.  [723439]
    *  Link Time Code Generation (--ltcg) could sometimes fail on Windows hosts when a large number of inputs were used, due to limits on subprocess command line length. This is now fixed.
    *  The linker can now merge strings section where the address has been generated by a MOVT and MOVW instruction sequence. Previously the linker would generate warning L6412W, and disable string merging for the section containing the unsupported relocation. [720759]


    *  The program exit code passed to exit() or returned from main() did not reliably find its way to the underlying _sys_exit() function. This has been fixed.  [722485]
    *  When using the real-time heap in a multithreaded program, malloc() was not releasing the heap mutex in the case where it returned failure. This has been fixed.  [722557]
    *  The C++ runtime library function __aeabi_vec_ctor_cookie_nodtor was implemented incorrectly, and has been corrected.  [713271]


    *  "fromelf --elf" incorretly removed any file offsets inserted by the linker. It now maintains file offsets specified by the p_align ELF field [720261]














新闻中心 | 联系我们 | 招聘信息 | 留言反馈 | 典型客户 | © 2019 Myir
深圳总部: 0755-25622735 | 北京办事处: 010-84675491 | 上海办事处: 021-60317628 粤ICP备12005064号-1