ld: Don't treat fatal error as warning
A patch has been applied to ensure fatal errors reported by the linker are not treated as warnings.
This discussion confirms that a patch has been applied to the linker (ld) to correct its error handling. Previously, fatal errors might have been misinterpreted as warnings due to how they were passed to the vfinfo function. The change ensures that fatal errors are consistently reported as such, aligning with expected behavior and improving diagnostic clarity.
- proposer
Announces that the patch to prevent fatal errors from being treated as warnings has been checked in.
“I am checking it in.”
In Details
The linker (ld) has been updated to correctly distinguish between fatal errors and warnings. A prior patch modified the fatal function to pass false for the is_warning argument to vfinfo. This ensures that messages identified as fatal errors are not subsequently processed or displayed as mere warnings, leading to clearer diagnostics for build failures.
- ld
- The GNU linker, responsible for combining object files and libraries into executable files or shared libraries.
- vfinfo
- Likely a function within the linker or a related library used for reporting information or errors to the user.
- is_warning
- A flag or parameter indicating whether a reported message is a warning or a more severe error.