There should be a federal law that applies to all publicity traded companies that when a layoff occurs, a mandatory pay cap to total compensation for all employees including the CEO goes into effect limiting total comp to 500k that year and the following year. If that were the case, layoffs would be reserved for situations where they are actually are needed to keep the company alive.
CEO/board wants to cut positions? They must suffer as well as a result of their decision.