as, ld, nm: disable sbrk() calls on Darwin.

sbrk() is declared as deprecated in "/usr/include/unistd.h" on Darwin.
This causes build errors when building binutils. Configure detects
that sbrk() is present and defines HAVE_SBRK, but the compiler
sees __deprecated attribute on the declaration and errors out.

Bug: 37683243
Test: binutils-2.27 builds successfully on Darwin.

Change-Id: I5baad79e19f49c5ea8f657173070382f8504dbd1
3 files changed
tree: 59572a71bf84c1e7b0b82abdbcd6f67c79474bef
  1. binutils-2.27/
  2. OWNERS