blob: 7763e47f42e11d8bc018ee65d8a59f23e4623f62 [file] [log] [blame]
#!/bin/sh
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This files wraps lld.
# Enable smallpie, now, relro and hash-style=gnu to match gold wrapper.
# Enable norosegment to match gold wrapper, for symbolization. b/140622025
# Pass --undefined-version (b/263147806).
exec "$(dirname "$(readlink -f "$0")")"/ld.lld --pack-dyn-relocs=relr -z now -z relro --no-rosegment --undefined-version --hash-style=gnu -z nostart-stop-gc "$@"