Community
Participate
Working Groups
The linker command line adds -Wl,-T in front of the name of the linker command script. If the name of the script contains '-' (or some other character other than a-z, A-z, '_' or '.'), the regex that adds -Wl,-T fails and doesn't add anything. That causes a default linker command script not to be included, which then causes the error with a message: .gnu.attributes not found for insert
- fixed in xdctest-c39 and xdctest-d13 A regex expression that was looking for an xdl file in the command line is now simpler, only looking for any number of non-space characters ending with .xdl. The relevant code is in gnu/targets/ITarget.xs in function link().
Reproduced problem with XDCtools 3.20.06.81 by using a configuration script with the '-' character in it. Used the 'gnu.targets.arm.GCArmv6' target and the gcc 4.4.1 codesourcery compiler. Confirmed that the problem is fixed in XDCtools 3.20.07.84-eng. Reviewed fix by inspection in $TREES/xdctargets/xdctargets-c39/src/gnu/targets/ITarget.xs and $TREES/xdctargets/xdctargets-d13/src/gnu/targets/ITarget.xs
Shipped in XDCtools 3.21