sysdeps/init_array: Add PREINIT_FUNCTION to crti.S
authorPalmer Dabbelt <palmer@dabbelt.com>
Thu, 25 Jan 2018 18:33:18 +0000 (10:33 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 29 Jan 2018 18:22:26 +0000 (10:22 -0800)
commit532cf290d023487b141b9369f29cd780ec93ac8b
treeab4a9a7c25067fc1a6588b39d5b89a2471fe643e
parentcdd14619a713ab41e26ba700add4880604324dbb
sysdeps/init_array: Add PREINIT_FUNCTION to crti.S

The RISC-V port contains a crti.S that simply contains a link to
PREINIT_FUNCTION (when defined).  As this should be entirely generic,
Joseph Myers suggested that we update the generic init_array version to
contain this.  Since RISC-V is the only user of init_array this won't
break any existing ports.

2018-01-29  Palmer Dabbelt  <palmer@sifive.com>

        * sysdeps/init_array/crti.S (.section .init_array): Add
        PREINIT_FUNCTION when defined.
ChangeLog
sysdeps/init_array/crti.S