How do you stop the Brake Indicator Sound on a 1997 Buick Riviera from continuously dinging as I give it gas til it shifts out of first or second gear?

Had same issue with my 97 riv. turns out the E brake was on the whole time regardless of the pedal position. Check the brake cable just behind the driver door edge for damage. Mine had about 1 inch of sleeve missing which caused the brake to stick on. To temporarily fix it just pull the sleeve back to where it should rest. could also be a problem with the switch on the e-brake pedal as well