ld: fix error-vs-warning w/poisoned system directories

When I reworked this code, I misread the einfo lines slightly -- the error
code path uses %X while the warning path did not.  When I merged the two,
they both got %X which means the warning was now fatal.

Split the two paths back apart like the original code did.  Now the linker
does not exit(1) when using only --warn-poison-system-directories.

BUG=chromium:488360
TEST=`ld -L/lib --warn-poison-system-directories` warns but does not exit
TEST=`ld -L/lib --warn-poison-system-directories --error-poison-system-directories` errors out

Change-Id: I93efe6a31bdda6c601b78cad2724ad2563869c5d
Reviewed-on: https://chromium-review.googlesource.com/272716
Reviewed-by: Han Shen <shenhan@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed